Text ↔ Binary ↔ Hex Converter
Convert between plain text, binary (base 2), and hexadecimal (base 16). Choose your separator (space, dash, or none) for binary and hex output. Handles ASCII characters with instant conversion.
Frequently Asked Questions
How does text to binary conversion work?▼
Each character is converted to its ASCII (or Unicode) code point, then that number is expressed as an 8-bit binary string. For example, 'H' is ASCII 72, which is 01001000 in binary.
What is hexadecimal and why is it used?▼
Hexadecimal (base 16) uses digits 0-9 and letters A-F. It's more compact than binary — each hex digit represents exactly 4 bits, so a byte is two hex digits (e.g., 0xFF). Hex is common in color codes, memory addresses, and cryptographic hashes.
How do I convert binary back to text?▼
Select 'Binary → Text' mode, paste binary digits (spaces are ignored), and the converter groups them into 8-bit chunks and converts each to its ASCII character.
What character encoding is used?▼
The converter uses ASCII code points (charCodeAt / fromCharCode), which handles standard ASCII characters (0-127) correctly. For non-ASCII Unicode characters, the binary representation will use the character's Unicode code point.
Looking for more free developer tools?
Browse All Free Tools →Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
Production-ready prompt templates, chain-of-thought workflows, and API integration code for GPT-4, Claude, Gemini, and any instruction-following LLM.
Buy on Gumroad →Developer Productivity Toolkit
Complete dev environment setup: VS Code settings, keybindings, snippets, shell aliases, Git hooks, tmux config, and Starship prompt. Copy, paste, code faster.
Buy on Gumroad →More Free Tools
Related Articles
Base64 Encoder Decoder: Complete Guide for Developers
Everything developers need to know about Base64 encoding and decoding. How it works, when to use it, common pitfalls, and a free online Base64 encoder decoder tool.
Base64 Encoding Explained: When to Use It and When to Avoid It
What is Base64 encoding, why it exists, and when to use it in web development. Includes real-world examples for APIs, image data URIs, and authentication tokens.
Color Picker Tools for Developers: HEX, RGB, HSL, and CSS Custom Properties in 2026
How to use color picker tools effectively for web development. Covers HEX/RGB/HSL conversion, CSS custom properties for theming, accessibility contrast checking, and generating palettes.
Get weekly developer tips
Tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →