Binary, Hex and Decimal Chart

Look up small numbers in the four number systems programmers use most. For any other value, use the number base converter.

0 to 32

Decimal, binary, octal and hexadecimal equivalents
DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
160001 00002010
170001 00012111
180001 00102212
190001 00112313
200001 01002414
210001 01012515
220001 01102616
230001 01112717
240001 10003018
250001 10013119
260001 1010321A
270001 1011331B
280001 1100341C
290001 1101351D
300001 1110361E
310001 1111371F
320010 00004020

Useful byte values

DecimalBinaryHexWhy it matters
640100 000040Bit 6 set
1000110 010064A round decimal number
1270111 11117FLargest signed 8-bit value
1281000 000080Top bit of a byte
1921100 0000C0Common first byte of private IPv4 addresses (192.168.x.x)
2401111 0000F0High nibble all ones
2551111 1111FFLargest byte value; full-intensity color channel (#FF)

Powers of two

PowerDecimalHexCommon name
2⁴1610nibble values (16)
2⁸256100values in a byte (256)
2¹⁰1,0244001 KiB
2¹⁶65,53610000values in 16 bits (65,536)
2²⁰1,048,5761000001 MiB
2³⁰1,073,741,824400000001 GiB
2³²4,294,967,296100000000values in 32 bits (≈ 4.29 billion)

Reading hex colors

Web colors like #1E90FF are three bytes in hex: red 1E (30), green 90 (144), blue FF (255). Each pair runs from 00 to FF, i.e. 0 to 255.