UnitSnap All converters

Number Base converter

Rewrite whole numbers in another base.

14 units, referenced to the decimal

Converter

-
Digits 0-9 and a-z are accepted, in the source base.

Quick pairs

tap to load

The four bases side by side

DecimalBinary (base 2)Octal (base 8)Decimal (base 10)Hexadecimal (base 16)
11111
210222
5101555
810001088
1010101210A
1511111715F
1610000201610
311111137311F
32100000403220
6410000001006440
100110010014410064
1281000000020012880
25511111111377255FF
256100000000400256100
10001111101000175010003E8
10241000000000020001024400

How the decimal (base 10) to binary (base 2) conversion works

Binary, octal and hexadecimal are the ones programmers reach for; every base from 2 to 36 is here.

To convert by hand, expand the number in its source base by multiplying each digit by the base raised to its position. Then divide the total by the target base over and over, reading the remainders from last to first.

Questions

Which units does this number base converter cover?

14 units in total, all referenced to the decimal. They include binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), base 3, base 4 and more. Pick any pair from the two dropdown lists.

How precise are the results?

Every conversion is computed in your browser at double precision from the factors listed on this page, which follow the SI definitions and the exact international agreements for imperial and US customary units. Use the Decimals control to round the display without changing the underlying value.

Does anything I type leave my device?

No. The converter is plain JavaScript running locally, with no server round-trip, and the page keeps working offline once loaded.