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.

60K+ developers trust DevPlaybook Runs 100% in your browser No data leaves your machine

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 →
Share this tool: X / Twitter LinkedIn

Related Products

on Gumroad

More Free Tools

Get weekly developer tips

Tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$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.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →