Base10 to Hex Converter
Convert a base10 (decimal) number into hexadecimal using repeated division by 16 — the reverse of hex to base10.
How to Convert Base10 to Hex
Divide the number by 16 and keep the remainder as the rightmost hex digit. Take the quotient and divide by 16 again for the next digit, repeating until the quotient reaches 0. Reading the remainders from last to first gives the hex value.
Where the Base10 Terminology Actually Comes Up
Completing a Number-Systems Worksheet
Assignments comparing base2/base8/base10/base16 side by side use this exact conversion for the base10-to-hex column, rather than the everyday word "decimal."
170 (base10) -> AA (base16)
Disambiguating a Number in Mixed-Base Documentation
When a spec lists values in multiple bases and needs to be explicit about which one a given number is, labeling it base10 (rather than assuming) avoids a costly misread.
20 (base10) vs 0x20 (base16)
Writing a Formal Base Conversion Proof
Math and CS coursework that proves a conversion algorithm's correctness generally uses base-N notation throughout — this matches that formal framing exactly.
base10 input -> base16 output
Common Mistakes When Converting Base10 to Hex
- Reading the remainders in the order found instead of reversing them.
- Writing a remainder of 10-15 as two digits instead of its hex letter.
- Applying this method directly to a negative number instead of a signed representation.
Why Use This Calculator Instead of Doing It by Hand
- Shows every division and remainder, so you can check your own by-hand math
- Runs entirely in your browser — nothing you type gets sent anywhere
- Handles numbers of any size, not just what fits neatly on paper
- Gives binary and octal for the same value at once, no extra lookups
Frequently Asked Questions
How do you convert base10 to hex?
Divide the number by 16, keep the remainder as a hex digit, then divide the quotient by 16 again. Repeat until the quotient is 0, then read the remainders in reverse order.
Why "base10" instead of "decimal"?
Same numeral system — base10 is the term used when discussing number systems by their base, consistent with base2, base8, and base16.
Why do the remainders get read backwards?
The first division finds the smallest place-value digit, and each subsequent division finds the next digit up — but numbers are written with the largest place value first, so the order has to reverse.
What if a remainder is 10 or higher?
Write it as a hex letter instead — 10 through 15 become A through F. A remainder from dividing by 16 is always in that 0-15 range.
Can negative base10 numbers be converted this way?
Not directly — negative values need a signed representation like two's complement at a fixed bit width rather than a plain minus sign.
Is this the same as the site's Decimal to Hex converter?
Yes, functionally identical — this page targets the base10 terminology specifically.
Why call it "base10" when everyone already knows decimal?
Naming it base10 makes the pattern explicit when it's taught or documented alongside base2, base8, and base16 — the everyday numbers you already use are just one instance of a general positional numeral system.
Does base10 ever get confused with base16 in practice?
Yes, often — a number like "20" is ambiguous without context (20 decimal vs 0x20, which is 32 decimal), which is exactly why specifying the base explicitly, or using a 0x prefix, matters.