How to Read Binary
To read binary, give each position a value that doubles from right to left (1, 2, 4, 8, 16, 32, 64, 128), add up the values where there is a 1, and then, if the number is a character, look it up in a character table. The examples on this page are calculated by the same engine as the tools.
Worked examples
- Place values of a byte: 128 64 32 16 8 4 2 1
- Read 01000001: 1 × 2^6 = 64; 1 × 2^0 = 1; total 65, which is "A" in ASCII.
- Read 01001000 01101001: 72 and 105 = "Hi".
- Two-byte character: 11000011 10101001 = bytes 195 and 169, which decodes to "é" (U+00E9).
Place values
In decimal each position is ten times the one to its right. In binary each position is two times the one to its right. A single binary digit is a bit; eight bits make a byte, and a byte has eight place values from 128 on the left down to 1 on the right. A bit that is 1 adds its place value, and a 0 adds nothing.
From bytes to letters
A byte is just a number from 0 to 255. Text uses a table to give those numbers meaning. In ASCII, 65 is A, 66 is B and 97 is a. Spaces between bytes are only for human readers; computers store them back to back. If you see a string of 0s and 1s whose length is a multiple of 8, it is very likely text, and you can paste it into the binary translator to decode it.
A faster trick for ASCII letters: uppercase letters start with 010 and lowercase letters start with 011, so the first three bits tell you the case, and the last five tell you the letter number (00001 is the 1st letter).
Multi-byte characters
Characters outside ASCII use more than one byte in UTF-8. The first byte tells you how many: 110xxxxx begins a two-byte character, 1110xxxx a three-byte one and 11110xxx a four-byte one. Every following byte starts with 10. Strip those marker bits and join what remains to get the code point.
Frequently asked questions
- How do I read binary quickly?
- Memorise the place values 128, 64, 32, 16, 8, 4, 2, 1 and add the ones that sit under a 1.
- What does 00000001 mean?
- It is the number 1; only the rightmost place, worth 1, is set.
- Why do many binary messages start with 01?
- Because ASCII letters are numbers between 65 and 122, and in 8 bits those begin with 01.
- Is binary only used by computers?
- It is how digital hardware stores everything, but the notation is also a handy teaching tool for number systems.
Standards and references
- The Unicode Standard: defines code points and the UTF-8 encoding form.
- RFC 3629: UTF-8, a transformation format of ISO 10646: specifies how code points map to 1-4 bytes and which byte sequences are invalid.
- ANSI X3.4 (US-ASCII), as described in RFC 20: the 7-bit American Standard Code for Information Interchange, 128 codes.