Binary ↔ Text

Convert UTF-8 text to 8-bit binary, or parse a binary string back to text.

Binary conversion example

Each byte of the UTF-8 text becomes a group of 8 bits, groups separated by a space:

Hi   →   01001000 01101001

Reading one group: the bit positions are worth 128, 64, 32, 16, 8, 4, 2 and 1 from left to right. 01001000 has the 64 and the 8 set, 64 + 8 = 72, and 72 is the code of H. 01101001 is 64 + 32 + 8 + 1 = 105, the code of i.

A character outside ASCII takes more than one byte. The euro sign is three bytes:

€   →   11100010 10000010 10101100

Patterns worth recognising

  • Upper and lower case differ by one bit. A is 01000001 and a is 01100001; only the bit worth 32 changes.
  • Digits start with 0011. 0 to 9 are 00110000 to 00111001; the last four bits are the digit's value.
  • A leading 0 means ASCII. Every ASCII character fits in 7 bits, so its byte begins with 0. A byte that begins with 110, 1110 or 11110 starts a UTF-8 character of 2, 3 or 4 bytes, and each following byte begins with 10.
  • Length check. The number of bits must be a multiple of 8. A string of 15 or 17 bits has lost or gained a bit, usually a leading zero dropped by a calculator.

Related tools

Monitor Binary ↔ Text automatically

Convert UTF-8 text to 8-bit binary, or parse a binary string back to text. NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.

Start monitoring free → See all monitoring products

Frequently Asked Questions

What does this tool encode?

Text is encoded as UTF-8 bytes, then each byte is shown as 8 binary digits (bits). The letter 'A' (decimal 65) becomes 01000001. Groups are space-separated for readability. Spaces are stripped when decoding — paste binary with or without spaces.

Why must the binary string be a multiple of 8 bits?

A byte is exactly 8 bits. If the input length isn't divisible by 8 there's no valid byte boundary to decode from — the tool returns an error. This usually means a stray character or missing leading zero (e.g. writing 1000001 instead of 01000001 for 'A').

Can I use this for non-ASCII text?

Yes — text is encoded as UTF-8 before converting to binary, so any Unicode character works. However, non-ASCII characters produce more than 8 bits: '€' (U+20AC) produces 24 bits (3 UTF-8 bytes). Decoding back requires the full correct bit sequence.