How to Read Binary Code: Letters to Text, Step by Step

How to Read Binary Code: Letters to Text, Step by Step

How to read binary code by hand is place-value arithmetic, then a lookup. Split the bits into groups of eight, add 128…1 where the bit is 1, and map the total to a letter. FlashKit’s binary code translator does the same mapping in the tab: each character becomes its Unicode code point printed in base 2. It is not a UTF-8 byte dump and not a firmware viewer.

Place values for one byte, left to right:

128 64 32 16 8 4 2 1

A leading zero does not change the number. Homework sheets often want eight bits; the translator omits them, the way Number.toString(2) omits them.

How to read binary code: worked decode of Hi

FlashKit prints 1001000 1101001 for the string Hi (verified with the same codePointAt(0).toString(2) path the widget uses). Pad each token to eight bits for the worksheet:

  • 01001000 — bits with place 64 and 8 on → 64 + 8 = 72 → H (U+0048).
  • 01101001 — 64 + 32 + 8 + 1 = 105 → i (U+0069).

Paste 1001000 1101001 on the right-hand side of the translator and the left side rebuilds Hi. Paste the padded form 01001000 01101001 and you get the same letters: leading zeros are optional on decode.

Check the tokens in the translator

Text ↔ Unicode binary code points. Spaces between tokens. No file picker.

Open the binary converter

Worked decode of FlashKit

FlashKit → 1000110 1101100 1100001 1110011 1101000 1001011 1101001 1110100. With 8-bit padding and place values:

Char8-bitSumDecimal
F0100011064+4+270
l0110110064+32+8+4108
a0110000164+32+197
s0111001164+32+16+2+1115
h0110100064+32+8104
K0100101164+8+2+175
i0110100164+32+8+1105
t0111010064+32+16+4116

Those decimals are the Unicode code points. They also happen to be ASCII. The translator’s output has no leading zeros: F is 1000110, not 01000110.

Code points versus bytes

“A” is 1000001 as a code point and as a UTF-8 byte. The rupee sign ₹ is one code point, 10000010111001 (U+20B9, decimal 8377), but three UTF-8 bytes e2 82 b9. The translator prints the code point. For padded UTF-8 groups instead of unpadded code points, use the binary translator that prints UTF-8 bytes. The binary alphabet table lists A–Z, a–z and 0–9 in this same notation. Hex of the same points is the text to hex converter; decoding hex dumps is hex to text.

Invalid tokens (a 2, a letter) show a red error and leave the last good text in place. Separators are spaces or commas. There is no endianness control and no file picker. Refresh restores “Hello World”.

Same letters, hexadecimal

Hi is 48 69 in hex — the compact form of the same code points.

Open the hex converter

Place values, padding, and what the translator prints

For an 8-bit worksheet the place values are 128, 64, 32, 16, 8, 4, 2, 1. ASCII letters live below 128, so the 128s bit is 0 and FlashKit omits it. H is 1001000 in the widget and 01001000 on a sheet that wants eight bits. Both parseInt to 72. The decoder splits on spaces or commas, runs parseInt(token, 2), then String.fromCodePoint. A token that contains a 2, a letter, or another non-bit is an error; the last good text stays in the left box.

“Hello World” (eleven characters, including the space) is eleven tokens: 1001000 1100101 1101100 1101100 1101111 100000 1010111 1101111 1110010 1101100 1100100. Change the first token to 1001001 and the text becomes “Iello World” because 1001001 is 73, “I”. That is the same live-update the form shows. There is no submit button. Refresh restores the sample; nothing is written to localStorage.

UTF-8 is a different grouping. “é” (U+00E9, 233) is one code-point token 11101001. UTF-8 bytes are 11000011 10101001 (195 169). The translator prints the code point. ₹ is one token 10000010111001 (U+20B9, 8377) and three UTF-8 bytes E2 82 B9. If a homework sheet wants padded 8-bit bytes of a UTF-8 stream, this page is the wrong tool; use a hex editor or a UTF-8 encoder, then group those bytes.

Common reading mistakes

  • Reading 7-bit tokens as if the missing leading zero changed the value. It does not.
  • Joining all bits into one number. “Hi” is two tokens, not one 16-bit integer.
  • Treating the output as a .bin dump. There is no file picker. Long pastes can freeze the tab; split the work.
  • Expecting a bitwise calculator (AND/OR/XOR of two integers). This widget maps letters to code points.

The sibling hex converter prints the same points in base 16: Hi is 48 69. The decimal/ASCII sibling prints 72 105. The alphabet tables list every A–Z, a–z and 0–9 token so you can look up a letter without adding place values each time. None of those pages pad to eight bits. If a protocol note wants 0b01001000, add the prefix and the zero yourself.

Invalid input examples: a token 1001002 contains a 2, so parseInt base 2 stops early or the widget rejects the token (the UI shows a red banner). An empty fragment from a double space is skipped. A lone 0 is code point 0, a NUL, which may not show as a glyph. Prefer the sample “Hello World” until the round-trip is obvious, then paste your worksheet bits on the right-hand side.

A second worked decode, then the 8-bit pad

Take 1000001 1000010 1000011. Place values on the first token: bits 64 + 1 = 65, “A”. Second: 64 + 2 = 66, “B”. Third: 64 + 2 + 1 = 67, “C”. The translator prints the same three letters if you paste those tokens on the binary side. Pad them to eight bits if a worksheet insists: 01000001 01000010 01000011. parseInt("01000001", 2) is still 65. FlashKit will accept the padded form; it will not emit the leading zeros when you type ABC on the text side.

Digits: character “5” is U+0035, decimal 53, binary 110101 (32+16+4+1). The number five in binary is 101. Those two tokens are not interchangeable. A homework line that says “write 5 in binary” wants 101. A line that says “write the letter/digit 5 as binary code” wants the character token from the alphabet table. Mixing them is the usual off-by-a-lot error on beginner sheets.

Comma-separated input works the same as spaces: 1001000,1101001 is still Hi. Mixed separators in one paste are split on both. There is no length check that the token is exactly eight bits. A one-bit token 1 is code point 1 (SOH). A 14-bit token for ₹ is a valid code point. The “split into 8-bit bytes” advice on this page is the worksheet method for ASCII letters, not a limit the widget enforces.

Bitwise AND/OR of two integers is not this page. If the assignment is “what is 01001000 AND 00001111,” you want a bitwise calculator, not a letter translator. If the assignment is “what letter is 01001000,” you want this page: 64+8 = 72, “H”. The decimal and hex siblings print 72 and 48 for that same point. Keep the three bases in one row in your notes so a later hex dump of Hello does not look like a new encoding.

A last check: paste the FlashKit tokens 1000110 1101100 1100001 1110011 1101000 1001011 1101001 1110100 into the translator. That is F l a s h K i t, the eight letters of the site name, each as a code point with leading zeros omitted. If a worksheet wants eight-bit groups, pad each token on the left with a 0 until the ASCII letters are eight bits wide, then add 128…1. The value does not change. The sibling alphabet table is the lookup if you would rather not add.

Related Tools