Dataqia🎲 random

Esta página também existe em português: Português (Brasil) · Español

Number base converter

Decimal · binary · hex table

DecBinHexOct
0000
1111
21022
510155
101010A12
16100001020
421010102A52
64100000040100
100110010064144
25511111111FF377
1024100000000004002000

Why computers count in base 2

Each binary digit (bit) is a physical state: on or off. Eight bits make a byte (0 to 255, which is why 255 shows up everywhere: RGB colors, network masks). Hexadecimal exists because 1 hex digit = exactly 4 bits, so FF is human shorthand for 11111111. That is why web colors are #RRGGBB. To convert decimal → binary by hand: divide by 2 repeatedly and read the remainders from the bottom up (42 → 101010, yes, the answer to everything). Octal survives in Unix permissions (chmod 755).

Last updated: · Methodology and sources