How to convert between number systems
- Find the field for the system your number is written in.
- Type or paste the number. Prefixes such as
0xor0b, spaces and underscores are ignored. - Read the result in the other three fields and copy it with the 📋 button.
The four number systems
Decimal (base 10) is the everyday system with the digits 0–9. Binary (base 2) uses only 0 and 1 and is how computers store everything. Octal (base 8) uses 0–7 and appears in Unix file permissions such as 755. Hexadecimal (base 16) uses 0–9 and A–F; one hex digit stands for exactly four bits, which makes it a compact way to write binary data, colours (#FF8800) and memory addresses.
In every system the position of a digit decides its value. In binary, 1011 means 1×8 + 0×4 + 1×2 + 1×1 = 11.
Values worth knowing
- 255 = 11111111 = FF – the largest value in one byte.
- 1024 = 10000000000 = 400 – two to the power of ten.
- 65,535 = FFFF – the largest 16-bit value.
- 4,294,967,295 = FFFFFFFF – the largest 32-bit value.
Frequently asked questions
How large can the numbers be?
Very large. The converter calculates with exact integers, so even numbers with hundreds of digits are converted without rounding.
Can I convert negative numbers or fractions?
No. Only non-negative whole numbers are supported, because negative binary numbers depend on the chosen bit width.
Are lower-case hex letters accepted?
Yes. You can type ff or FF; the result is shown in capitals.
What does “8 bit · 1 byte” mean?
It is the number of binary digits needed for the value and the number of bytes that many bits occupy.