← All tools

Binary to text converter

Translate text into binary code (zeros and ones) and binary back into text, or use hexadecimal, octal and decimal bytes. Emoji and every alphabet work, because the text is read as UTF-8. There is also a converter for numbers between binary, octal, decimal and hex.

Binary13 bytes
Character by character
CharUnicodeDecimalHex bytesBinary bytes
HU+0048724801001000
eU+00651016501100101
lU+006C1086C01101100
lU+006C1086C01101100
oU+006F1116F01101111
,U+002C442C00101100
␠U+0020322000100000
wU+00771197701110111
oU+006F1116F01101111
rU+00721147201110010
lU+006C1086C01101100
dU+00641006401100100
!U+0021332100100001

Each group of 8 bits is one byte of the text in UTF-8. English letters take one byte; accented letters two; Arabic, Urdu and Hindi two or three; emoji four.

Enjoying Binary ↔ Text Converter?Your review and ideas shape what we build next.

Review Binary ↔ Text Converter

Please don't include file contents or passwords.

About the Binary ↔ Text Converter

Translate text into binary code, the zeros and ones computers store, and binary back into readable text. The converter encodes text as UTF-8, the encoding the web uses, so accented letters, Arabic, Urdu, Chinese and emoji convert correctly, not just English letters. Besides binary you can use hexadecimal, octal or decimal bytes, choose what separates them and add 0b or 0x prefixes. When decoding, it accepts bytes separated by spaces, commas or new lines, or one long run of digits, tells you exactly which group is wrong, and suggests the right format if you pasted hex into the binary box. A character table shows each letter's Unicode code point and bytes, and a separate mode converts whole numbers of any size between binary, octal, decimal and hexadecimal.

How to use it

  1. Choose Text → binary to encode, Binary → text to decode, or Number bases.
  2. Type or paste the text, or the binary, hex, octal or decimal code.
  3. Pick the code format and, when encoding, the separator and prefix.
  4. Read the result and copy it; open Character by character to see how each letter becomes bytes.
  5. Use Decode it back to check a result round-trips correctly.

Tip: If binary from a puzzle or a T-shirt decodes to nonsense, check the groups: each must be 8 digits. Groups of 7 come from old 7-bit ASCII and still work here when separated by spaces, but a missing digit shifts every byte after it.

How text becomes binary

Computers store text as numbers. Each character has a number in Unicode (A is 65, é is 233, the 😀 emoji is 128,512), and an encoding turns that number into bytes. UTF-8, used by almost every web page, stores English letters and digits in one byte, so A becomes 01000001. Accented Latin letters take two bytes, Arabic and Urdu letters two, Hindi and Chinese three, and emoji four.

Binary is base 2: each digit is a power of two. Reading 01000001 from the right, the 1s are worth 1 and 64, which adds up to 65, the code for A. A byte has 8 binary digits (bits), so it can hold 256 values, from 00000000 (0) to 11111111 (255).

Binary, hex, octal and decimal

Binary (base 2)
8 digits per byte: 01001000 01101001 is “Hi”. Used in teaching, puzzles and low-level work.
Hexadecimal (base 16)
2 digits per byte, 0–9 and A–F: 48 69 is “Hi”. Used by programmers, in colour codes, memory dumps and URL encoding (%48%69).
Octal (base 8)
3 digits per byte: 110 151. Mostly seen in Unix file permissions, such as 755.
Decimal
The byte values as ordinary numbers, 72 105. Handy for programming exercises.

Number bases

The Number bases mode converts one whole number between the four systems, with no size limit: 255 is 1111 1111 in binary, 377 in octal and FF in hex. It also shows how many bits the number needs and how many bytes hold it, which helps when choosing an 8, 16, 32 or 64-bit field. Spaces, underscores and prefixes such as 0x and 0b are ignored when you paste a number.

Fixing decoding errors

“isn't binary”
A group contains a character other than 0 or 1, often a letter O instead of a zero, or the code is actually hex.
“multiple of 8”
Binary without spaces must be whole bytes. A digit was lost or added; add spaces between bytes to find where.
“more than one byte can hold”
A decimal value is over 255, or octal over 377. Each value must be a single byte.
� in the text
The bytes aren't valid UTF-8: the code is cut off in the middle of a character, or it was made with another encoding.

Where you meet binary and hex

Binary is how computers store everything, but people rarely write it by hand: it shows up in computer science lessons, puzzles, escape rooms, geocaches and messages on T-shirts and tattoos. Hexadecimal is far more common in practice, because two hex digits describe exactly one byte. You see it in colour codes (#FF5733 is three bytes: red 255, green 87, blue 51), in MAC addresses, in error codes, in file signatures (every PNG file starts with 89 50 4E 47) and in percent-encoded web addresses, where a space becomes %20.

Octal survives mainly in Unix and Linux file permissions: chmod 755 means read, write and run for the owner (7 = 111 in binary) and read and run for everyone else (5 = 101).

ASCII and Unicode

ASCII, from the 1960s, defined 128 characters: English letters, digits, punctuation and control codes, each fitting in 7 bits. Unicode extends this to over 150,000 characters for every writing system, plus symbols and emoji, and UTF-8 is the way of storing Unicode that keeps ASCII text byte-for-byte the same. That is why English text gives the same binary in ASCII and UTF-8 converters, while other languages only come out right in a converter that uses UTF-8, as this one does.

Tips and tricks

Secret messages

Binary hides nothing: anyone can decode it. Use encryption for real secrets.

Spaces count

A space is a character too: 00100000 in binary, 20 in hex.

Line breaks

A new line is 00001010 (10); Windows text adds 00001101 (13) before it.

Learn the pattern

Capital letters start 010, small letters 011: A is 01000001, a is 01100001.

Questions

How do I convert text to binary?

Type the text in Text → binary. Each character becomes one or more 8-digit bytes, for example “Hi” becomes 01001000 01101001.

How do I convert binary to text?

Paste the binary in Binary → text. Bytes can be separated by spaces or written as one long run of digits.

What is “hello” in binary?

01101000 01100101 01101100 01101100 01101111.

Does it work with emoji and other languages?

Yes. Text is encoded as UTF-8, so every alphabet and emoji converts and decodes correctly.

How do I convert binary to decimal?

Use Number bases, choose Binary (base 2) and type the number: 1010 is 10 in decimal.

Is anything sent to a server?

No. The tool runs entirely in your browser, on your device. Nothing you type or make is uploaded, saved or logged.

Related tools

Updated