Number System Converter
Decimal (dec)
Hexadecimal (hex)
How it is calculated
The number is first converted to decimal as digits × radixⁿ, then to the selected base by division with remainder. Prefixes 0x, 0b, 0o and digit grouping with spaces or _ are allowed.
dec: digits 0 1 2 3 4 5 6 7 8 9, radix 10
hex: digits 0 1 2 3 4 5 6 7 8 9 A B C D E F, radix 16
255 ÷ 16 = 15 remainder 15 (F)
15 ÷ 16 = 0 remainder 15 (F)
255₁₀ = FF₁₆
Convert numbers between decimal, hexadecimal, binary, and octal.