Developer ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Developer Tools

Binary to Text and Text to Binary Converter

Convert text to 8-bit binary and binary back to text, using UTF-8 or UTF-16. Hi becomes 01001000 01101001, and accented letters and emoji use 2 to 4 bytes.

View all tools
ResultUpdates as you type
01001000 01101001 00100000 11000010 10100011 00110101

5 characters → 6 bytes (48 bits).

Non-ASCII characters are encoded as UTF-8, taking 2–4 bytes each.

CharacterBinaryHex
H0100100048
i0110100169
(space/control)0010000020
£11000010 10100011C2 A3
50011010135

How to use Binary to Text and Text to Binary Converter

Type text to get binary, or paste 0s and 1s to decode them; the direction is detected automatically. Choose UTF-8 or UTF-16 and how the output is separated, and a table shows each character's binary and hex values.

  1. Enter text or binaryType Hi £5, or paste binary separated by spaces, commas or new lines, or written as one continuous string.
  2. Choose the encodingUTF-8 uses 8-bit bytes and suits almost everything; UTF-16 uses 16-bit units, as JavaScript and Windows do internally.
  3. Pick a separator and copyOutput with spaces, with no separator, or one character per line, then copy the result.

How characters become bits

Text is first encoded into bytes and each byte is written as eight bits. In UTF-8, H is 01001000 and i is 01101001, so Hi becomes 01001000 01101001. Characters outside ASCII take more bytes: the pound sign £ is 11000010 10100011, and the grinning face emoji (U+1F600) is four bytes, 11110000 10011111 10011000 10000000. Switch to UTF-16 and each 16-bit unit is shown instead, so £ becomes 0000000010100011. The table lists every character with its binary groups and hex bytes, and the summary line counts characters, bytes and total bits.

Decoding binary to text

Binary can be separated by spaces, commas or new lines, may carry 0b prefixes, or can be one long run that is split every 8 bits (16 for UTF-16), so 0100100001101001 decodes to Hi. Groups shorter than 8 bits are padded with leading zeros, so 1001000 1101001 also gives Hi. A continuous run whose length is not a multiple of 8 is rejected with a request to separate the bytes. Bytes that do not form valid UTF-8 are shown as � with a warning, which usually means the bits came from another encoding.

Accuracy and data handling

Validate the result with your project's own tests and runtime rules before using it in production. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

What is Hi in binary?

In ASCII and UTF-8, H is 01001000 and i is 01101001, so Hi is 01001000 01101001: two bytes, or 16 bits.

Why does one character produce 16, 24 or 32 bits?

UTF-8 stores characters beyond ASCII in two to four bytes. £ needs two bytes (16 bits), most Chinese characters three (24 bits) and emoji four (32 bits).

Why is my decoded text garbled?

The bits may come from a different encoding, such as UTF-16, or a bit may be missing or extra. Try the UTF-16 setting and check that every byte has exactly 8 bits.

More Developer Tools

Related tools