THE RIGHT TOOL FOR YOUR NEXT BYTE

Decimal to Hex Converter

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 inputHexadecimal outputBinary (base 2)Notes
15
F1111Largest single hexadecimal digit (one 4-bit nibble).
42
2A1010102 × 16 + 10 = 42.
255
FF11111111Maximum unsigned 8-bit byte, common in CSS RGB channels.
4096
1000100000000000016^3 = 4,096, a standard 4 KiB memory page boundary.
4294967295
FFFFFFFF11111111111111111111111111111111Maximum 32-bit unsigned integer (2^32 − 1).
-255
-FF-11111111Leading minus sign is kept without fixed-width two's complement.
9007199254740993
20000000000001100000000000000000000000000000000000000000000000000001Above 2^53; exact BigInt arithmetic preserves the final 1.

Need to convert in reverse? Open Hex to Decimal. Encoding text characters as hex bytes instead? Use Text to Hex.

GOOD QUESTIONS

Before you convert.

Input limits and formatting rules for decimal-to-hex conversion.

What do letters A through F mean in hexadecimal?

Hexadecimal is base 16, so after digits 0–9 it uses A for 10, B for 11, C for 12, D for 13, E for 14, and F for 15.

Why does decimal 10 convert to A instead of 0A?

Number mode outputs the shortest exact integer without fixed byte padding. Add a leading 0 when formatting CSS color channels or two-digit hex bytes.

Can I convert 64-bit or 128-bit decimal IDs without rounding?

Yes. Inputs up to 4,096 decimal digits are parsed directly with JavaScript BigInt, avoiding IEEE-754 floating-point precision loss.

How do I encode the characters '42' as hex bytes instead of the number 42?

Open Text to Hex. As an integer, 42 is 2A; as two ASCII text characters ('4' and '2'), its UTF-8 hex bytes are 34 32.