Units
Converter Units

Number Base Converter

Number base converter for binary, octal, decimal and hexadecimal, with the place-value working shown alongside the answer instead of just the result.

Most used number tools

Convert between all four bases

All bases

Every number base converter on this site

Reference table

DecimalBinaryOctalHexWhy it matters
81000108one octal digit
10101012A
15111117Fone hex digit
161000020102^4
64100000010040
100110010014464
1281000000020080one byte's high bit
25511111111377FFlargest 8-bit value
2561000000004001002^8
10241000000000020004002^10
40951111111111117777FFFthree hex digits
655351111111111111111177777FFFFlargest 16-bit value

Why these four bases

Binary is how hardware stores values. Hexadecimal is the compact way to write binary, since one hex digit is exactly four bits and a byte is always two hex digits. Octal groups bits in threes and survives mainly in Unix file permissions. Decimal is what people read.

The place-value method is identical in all of them: each digit is multiplied by the base raised to the power of its position, counting from zero at the right. The hex and binary pages show that expansion step by step.

What this tool won't do

It handles non-negative whole numbers only. Fractional values in other bases and signed representations using two's complement are different problems, and a converter that silently guessed at them would be worse than one that says so. For decimal fractions, the decimal to fraction converter handles exact and nearest-fraction output.

Common questions

What is FF in decimal?

255. It is the largest value that fits in one byte as an unsigned number, which is why it turns up constantly in color codes and memory dumps.

Why is hexadecimal used instead of binary?

Because one hex digit maps to exactly four bits, so a byte is always two hex digits. It writes binary compactly without breaking byte alignment, which decimal can't do.

Where is octal still used?

Mainly Unix file permissions, where each digit encodes read, write and execute as three bits. Outside that it is largely historical.

Does this handle negative numbers?

No. It converts non-negative whole numbers only. Signed values use two's complement, where the leftmost bit carries the sign and the same bits mean something different.

Sources

About the author

Written and last reviewed August 2026 by Cedrick Reese. Conversion factors rechecked against the sources listed above on that date.

More about who builds these tools, how the numbers are sourced, and how to report an error: About Converter Units.