Text to Binary Converter
Convert text to binary, hex, decimal or octal bytes (UTF-8), and decode binary codes back into readable text.
Runs in your browser. Nothing is uploaded.
How to use the Text to Binary Converter
- Type or paste text in the left box. Its binary code appears on the right.
- Choose Binary, Hexadecimal, Decimal or Octal, and how bytes should be separated.
- To decode, switch Convert to Codes → text and paste the codes. Spaces, commas, 0b and 0x prefixes are all accepted.
- Unbroken binary or hex, without spaces, is split into bytes automatically.
- Copy the result, or press Swap direction to convert it back.
Text as computers store it
Every character you type is stored as numbers, and every number as bits. This tool shows that translation: type a word and see the exact bytes behind it, written in binary, hexadecimal, decimal or octal. Or paste a string of zeros and ones and read the message hidden inside.
UTF-8, the encoding of the web
Text is encoded with UTF-8, which is used by almost every website, app and modern file format. Basic
English letters, digits and punctuation use one byte each, matching the older ASCII code, so “A” is
always 01000001. Letters with accents, other alphabets and emoji use two, three or four bytes. The tool
always shows the total byte count, which is useful when a field or protocol limits size in bytes rather
than characters.
Flexible decoding
Binary messages come in many shapes, so the decoder accepts:
- bytes separated by spaces, commas, semicolons or new lines
- one long unbroken run of bits, or hex digits, automatically split into bytes
- common prefixes such as
0bfor binary and0xfor hex - upper or lower case hex digits
If something doesn’t fit, such as a digit 2 in binary, a value over 255, or a run of bits that doesn’t divide into whole bytes, the message points to the exact problem.
For learning and debugging
Students use it to understand how text becomes numbers. Developers use it to inspect the exact bytes of a string when debugging encodings, protocols or file formats. Puzzle fans use it to decode binary messages. It all runs in your browser.
Frequently asked questions
How is text turned into binary?
Each character is first encoded as bytes using UTF-8, the standard encoding on the web. Each byte is then written as eight binary digits. Plain English letters take one byte each, while accented letters take two bytes and emoji take four, so they produce more binary digits.
Why does "é" give two bytes?
In UTF-8, characters beyond basic ASCII are stored in two to four bytes. é is stored as the bytes C3 A9 in hexadecimal (11000011 10101001 in binary). Older single-byte encodings would store it differently, which is why UTF-8 is used here as the universal standard.
What's the difference between binary, hex, decimal and octal?
They're different ways of writing the same byte values. Binary uses digits 0–1 (01001000), hexadecimal uses 0–9 and A–F (48), decimal uses ordinary numbers (72), and octal uses 0–7 (110). Hex is the most compact and common in programming.
What if the bytes aren't valid text?
The tool decodes them anyway, shows � for bytes that aren't valid UTF-8, and tells you. This usually means the codes are binary data rather than text, or were copied incompletely.
Is my text uploaded?
No. Conversion happens in your browser.
Tutorials
How to decode a binary message into text
Turn a string of zeros and ones into readable text, understand how UTF-8 bytes work, and fix common problems with copied binary.