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
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
Color Format Converter
Convert colors between HEX, RGB, and HSL formats instantly. Type any color value and get all other formats in one click. Visual color picker included. Runs entirely in your browser.
Open free tool →
Timestamp Converter
Free timestamp converter. Convert between Unix timestamps (seconds & milliseconds), ISO 8601, UTC string, RFC 2822, and local datetime. Live current timestamp. Runs in your browser.
Open free tool →
Unix Timestamp Converter
Free Unix timestamp converter. Convert epoch time to human-readable dates (UTC, local time, ISO 8601) and back. See the live current timestamp. Auto-detects seconds vs milliseconds. Runs entirely in y
Open free tool →
More Free Tools
Related Articles
Base64 Encode/Decode Explained: When and How to Use It
Understand when to use Base64 encoding and when to avoid it. This guide explains the Base64 algorithm, practical use cases, code examples in JavaScript, Python, Go, and more.
Base64 Encode Decode Online: Complete Developer Guide
Everything developers need to know about Base64 encoding and decoding—how it works, when to use it, URL-safe vs standard, plus a free browser-based Base64 encode decode tool.
Base64 Decode Online: Instantly Decode Any Base64 String for Free
Decode Base64 strings instantly online — JWT payloads, API image data, env vars, and SSH keys. No install needed, no account. URL-safe variant supported.
Base64 Encode Decode Online — Instant Browser-Based Converter
Base64 encode decode online — convert text, JSON, binary, and images to Base64 and back in seconds. No install, no signup, fully private. Learn how Base64 works with practical code examples.
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.
Enjoying this tool? Get more like it.
Weekly developer 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 →