Enter any whole base-10 integer such as 255 or 4096 to get its exact uppercase hexadecimal value locally in your browser, with no rounding on large integers.
→
Runs locally
2 charactersWhole numbers · exact precision
Ready
Exact integer resultBase 16
Tip: enter a whole number in the selected input base.
Your data stays in your browser Free. No sign-up. Exact integer conversion
01 / EXPLAINED SIMPLY
How to convert decimal to hexadecimal by hand
Divide the base-10 integer repeatedly by 16 and write down each remainder from 0 to 15 (using A–F for remainders 10–15) until the quotient reaches 0. Read the remainders from bottom to top.
Take decimal 443 as an example: 443 ÷ 16 = 27 remainder 11 (B); 27 ÷ 16 = 1 remainder 11 (B); 1 ÷ 16 = 0 remainder 1. Reading the remainders from bottom to top produces 1BB. Check the value by expanding powers of 16: 1 × 256 + 11 × 16 + 11 × 1 = 256 + 176 + 11 = 443.
Full 8-bit byte ceiling
Decimal 255 equals 15 × 16 + 15, written as FF.
255
HTTPS port 443
Decimal 443 converts to uppercase hex 1BB.
443
32-bit unsigned max
4294967295 (2^32 − 1) converts to eight F digits: FFFFFFFF.
4294967295
02 / CONVERSION EXAMPLES
Decimal to hexadecimal examples
Click Try ↑ on any row to convert it immediately. Use Swap below the output panel to verify the reverse base-16 to base-10 conversion.
Decimal integers with exact hexadecimal and binary equivalents
Decimal input
Hexadecimal output
Binary (base 2)
Notes
15
F
1111
Largest single hexadecimal digit (one 4-bit nibble).
42
2A
101010
2 × 16 + 10 = 42.
255
FF
11111111
Maximum unsigned 8-bit byte, common in CSS RGB channels.
4096
1000
1000000000000
16^3 = 4,096, a standard 4 KiB memory page boundary.
4294967295
FFFFFFFF
11111111111111111111111111111111
Maximum 32-bit unsigned integer (2^32 − 1).
-255
-FF
-11111111
Leading minus sign is kept without fixed-width two's complement.