Decimal to hex converter
Enter a decimal number and get its hex value instantly, plus the other bases and the step-by-step working. Handles huge numbers, negatives and fractions.
Working for 202610
Divide by 16, keep the remainders
- DivisionQuotientRemainder
- 2026 ÷ 16126A (10)
- 126 ÷ 167E (14)
- 7 ÷ 1607
Read the remainders from the bottom up: 7EA.
How to convert decimal to hex
- Divide the number by 16 and note the remainder (0–15; write 10–15 as A–F).
- Keep dividing the quotient by 16 until it reaches 0.
- Read the remainders bottom-up. 255 → F, F = FF.
Decimal is the base people count in, so it is the usual starting or ending point when you need a value a human can check. Hex is the shorthand for bytes: colour codes (#FF8800), memory addresses, MAC addresses, Unicode code points and hash digests are all written in it.
Related conversions
Binary to hex · Octal to hex · Decimal to binary · Decimal to octal · Hex to decimal · any base 2–36 · signed (two's complement)
Questions people ask
How do you convert decimal to hex?
Divide the number by 16 and note the remainder (0–15; write 10–15 as A–F). Keep dividing the quotient by 16 until it reaches 0. Read the remainders bottom-up. 255 → F, F = FF.
What is 2026 in hex?
2026 in decimal (base 10) is 7EA in hex (base 16).
Does it handle negative numbers and fractions?
Yes. A leading minus sign is kept, and digits after a point are converted too. Some fractions that end in one base repeat forever in another (0.1 in decimal is 0.000110011… in binary), so the result is cut at 24 digits and marked as repeating.
Is there a size limit?
No practical one. The converter uses arbitrary-precision integers (JavaScript BigInt), so 64-bit, 128-bit and longer values convert exactly, without rounding.