Convert decimal (base 10) numbers to hexadecimal (base 16) instantly, with digit validation, a worked place-value example and a reference table.
Step 1 — value: expand the decimal number by place values to get its decimal value. Step 2 — re-base: divide that value by 16 again and again, collecting remainders, and read them in reverse.
Step 1: 2×103 = 2000 + 0×102 = 0 + 2×101 = 20 + 6×100 = 6 → total 2026 (decimal). 2026 is the current year.
Step 2: 2026 written in base 16 is 7EA.
Result: 2026 (decimal) = 7EA (hexadecimal).
Decimal is the everyday human system, built on ten digits — almost certainly because we have ten fingers.
Hexadecimal groups binary digits in fours and is everywhere in computing: colours (#FF5733), MAC addresses, memory addresses and hex editors.
| Decimal | Hexadecimal |
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 | A |
| 11 | B |
| 12 | C |
| 13 | D |
| 14 | E |
| 15 | F |
| 16 | 10 |
| 32 | 20 |
| 64 | 40 |
| 100 | 64 |
| 128 | 80 |
| 255 | FF |
| 256 | 100 |
| 1000 | 3E8 |
First find the decimal value using place values (each digit is worth its face value times the base raised to its position), then divide by 16 repeatedly, reading the remainders upwards. The worked example on this page shows both steps for 2026.
2026 in decimal is 7EA in hexadecimal. 2026 is the current year.
Only these 10: 0123456789. Any other digit makes the number invalid in this base, and the converter above will tell you.
Decimal is the everyday human system, built on ten digits — almost certainly because we have ten fingers.
Use the hexadecimal to decimal converter — the process is the same, in the other direction.
Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.