ZapKit

Text to Binary Converter

Translate text into binary, hexadecimal, octal or decimal bytes, or decode any of them back into readable text, using UTF-8.

What is a text to binary converter?

Computers store every character as numbers, and those numbers as bits, ones and zeros. A text to binary converter shows the exact bytes behind a piece of text, in binary or in the more compact hexadecimal, octal or decimal notations.

Students use it to understand how encoding works, puzzle and escape-room makers to hide messages, and developers to inspect strings at the byte level when debugging encoding bugs, protocols and file formats. It works both ways, so a binary or hex message can be decoded back to text, emoji and accents included.

How to use the Text to Binary Converter

  1. 1.Choose the direction

    Text to binary, binary to text, or the same for hex, octal and decimal.

  2. 2.Type or paste

    When decoding, separate bytes with spaces, or paste a continuous string of full bytes.

  3. 3.Copy the result

    The byte count shows how much space the text takes in UTF-8.

Example: a greeting with an emoji

The text "Hi 👋" converted to binary:

H
01001000
i
01101001
space
00100000
👋
11110000 10011111 10010001 10001011
Total
7 bytes

Three plain characters take one byte each; the emoji alone takes four.

Why some characters take four bytes

Text is stored as UTF-8, where English letters and digits take one byte, accented and most non-Latin letters two or three, and emoji four. So "Hi 👋" is seven bytes, and in binary seven groups of eight digits.

When decoding, bytes can be separated by spaces, commas or line breaks, and hex may carry 0x or \x prefixes. Each value must fit in one byte, 0 to 255; a larger number means bytes have run together, and you'll be told which one.

Frequently asked questions

What is "hello" in binary?

01101000 01100101 01101100 01101100 01101111: five letters, five bytes.

Why do I get an invalid UTF-8 error?

The bytes don't form valid characters, usually because one is missing or wrong, or the data wasn't UTF-8 text.

Is this ASCII or Unicode?

UTF-8, which is identical to ASCII for basic English characters and also handles every Unicode character.

Can I paste binary without spaces?

Yes, as long as the length is a multiple of 8. The same goes for hex in pairs and octal in groups of three.

More Developer tools