Skip to content
QuillsCraft.

Stories, ideas & insights.

All tools

Binary Code Translator

Translate text to binary and binary back to text. Works in both directions as you type, handles UTF-8 and 7-bit ASCII, and shows the character, bit and byte counts.

Bits per character
  • Characters 5
  • Bits 40
  • Bytes 5

Binary for common characters

CharacterDecimalBinary (8 bit)
Space3200100000
04800110000
A6501000001
H7201001000
Z9001011010
a9701100001
e10101100101
z12201111010

Each character becomes a number, and the number is written in base 2. Eight-bit mode uses UTF-8, so accents, non-Latin scripts and emoji convert both ways. Seven-bit mode is the classic ASCII version used in textbooks and covers unaccented English only. Everything runs in your browser; nothing is uploaded.

About this tool

This binary code translator converts in both directions. Type in the text box and the binary appears beside it; paste binary in the other box and the text is decoded straight away, so it works as a binary translator, a binary decoder and a text to binary converter at once. Each character is turned into a number, and that number is written in base 2, which is why the letter A comes out as 01000001 and H as 01001000. The 8-bit mode uses UTF-8, so accents, non-Latin alphabets and emoji survive the round trip. Switch to 7 bits and you get the classic ASCII version used in computer science classes, which covers unaccented English only and warns you if a character does not fit. You can drop the spaces between bytes when you want a single unbroken string, copy either box with one click, and clear both when you start again. The counter shows characters, bits and bytes, which is handy when a homework question asks how many bits a message takes. Underneath there is a reference table with the binary for common characters, so you can check a single letter without typing anything. Everything runs in your browser and nothing you paste is uploaded.

How to use

Type or paste your message in the Text box to convert it to binary. To go the other way, paste binary digits in the Binary box and the text appears on the left. Spaces, line breaks and other stray characters in the binary are ignored, so pasting from a worksheet is fine. Choose 8 bit if you want full UTF-8 support, or 7 bit for plain ASCII. Use the separator menu to add or remove the spaces between bytes, and the copy buttons to take either version with you. If you see an error about a whole number of characters, your binary is missing a digit or has one too many: binary text comes in groups of 8, or 7 in ASCII mode.