Text to Binary & Hex Converter
Convert text to binary, hexadecimal, or decimal and back — UTF-8 aware, bidirectional, with one-click copy. Free and runs in your browser.
💡 How to use
- Pick a format (binary, hex, or decimal) and a direction, then type or paste.
- Encoding uses UTF-8, so emoji and accented characters convert correctly.
- Everything runs in your browser — nothing is uploaded.
Free Text to Binary & Hex Converter
Convert text to binary, hexadecimal, or decimal — and back again — instantly. Type or paste in either direction, toggle spacing, and copy the result. UTF-8 aware, so emoji and accented characters convert correctly. Free, no sign-up, runs entirely in your browser.
What is text-to-binary conversion?
Every character you type is stored by computers as a number. Text-to-binary conversion shows those numbers in base 2 — a string of 0s and 1s. Each byte becomes eight bits, so the letter 'A' (value 65) becomes 01000001. Converting to hexadecimal (base 16) or decimal (base 10) shows the same underlying bytes in a more compact form, which is handy for debugging, encoding, and learning how text is represented.
What this converter does
It handles conversions in every common base, in both directions:
- Text to binary and binary to text.
- Text to hexadecimal and hex to text.
- Text to decimal byte values and back.
- A swap button to flip the direction instantly.
How to use the converter
It is instant and interactive:
- Choose a format: binary, hexadecimal, or decimal.
- Choose a direction: text to code, or code to text.
- Type or paste — the output updates as you go.
- Toggle space-separation to match the format you need, then copy the result.
How characters become numbers (UTF-8)
This tool encodes text as UTF-8, the standard used across the web. Plain English letters map to a single byte each, while accented letters, symbols, and emoji use two, three, or four bytes. That is why an emoji converts to several bytes of binary or hex rather than one — UTF-8 needs more room to represent the full range of Unicode characters. Decoding reverses the process exactly, so no information is lost.
Common uses
Base conversion comes up in a lot of everyday technical work:
- Learning and teaching how computers store text.
- Debugging encoding issues by inspecting the raw bytes.
- Creating puzzle, CTF, or hobby-electronics content in binary or hex.
- Converting values for low-level protocols, file formats, and embedded systems.
Pro tip
When decoding binary, group the digits into 8-bit bytes (with or without spaces) so each byte maps to one character. For hex, use pairs of digits per byte. If a conversion looks wrong, check that your input length is a multiple of the expected byte size. For hashing text instead of encoding it, see our SHA-256 Hash Generator.
FAQ
Is this converter free and private?
How do I convert text to binary?
How do I convert binary back to text?
Does it support hexadecimal and decimal too?
Why does an emoji produce more than one byte?
Why is my binary not decoding?
Is binary the same as ASCII?
Related tools
Pro tip: pair this tool with Upside Down Text Generator and Text Similarity Checker for a faster SEO workflow.