Convert hex to decimal (base 16 → base 10)
Use this converter when you have hexadecimal integers (base 16) and need the decimal value (base 10).
This page is a focused Hex → Decimal variant built for speed:
- Batch mode is enabled by default (one value per line)
- Controls are intentionally hidden to keep this variant fast and distraction-free
Need binary/octal too, swapping, prefixes, or output formatting? Open the full Number Base Converter.
How to use it
- Paste your hex values into the input (left).
- Use one number per line.
- Copy the decimal results from the output (right).
Signed values are supported:
-1A→-26+FF→255
Input rules (hex)
Allowed characters
Hex input may contain:
- digits
0–9 - letters
A–F(ora–f) - an optional leading
+or-
Examples:
0Aff1A2B-DEAD
Optional 0x prefix
You may paste values like:
0xFF-0x1A+0x10
Separators are ignored
Spaces and underscores are ignored, so these are valid:
FF_FF0xFF FFDEAD_BEEF
Output format (decimal)
- Output is a base-10 integer
- Negative values keep a leading
-
Examples:
A→1010→16FF→2551000→4096-1A→-26
Batch example (one per line)
Input (hex):
A
0x10
FF
dead_beef
-1A
G1
Output (decimal):
10
16
255
3735928559
-26
!ERROR: Hex input may contain only 0–9 and A–F
One invalid line won’t break the rest.
Common use cases
Debugging, logs, and addresses
Many tools display values in hex (memory addresses, flags, hashes). Converting to decimal helps compare with systems that store numeric values as base-10.
Bitmasks and low-level flags
Hex is compact and maps cleanly to binary (each hex digit = 4 bits). Hex → decimal is common when you need to store or calculate with the value.
Learning and teaching
Hex → decimal conversions are a practical way to learn place values and base systems.
Troubleshooting
“Hex input may contain only 0–9 and A–F”
A line contains an invalid character (like G, Z, ., or commas).
Remove invalid characters, or switch to the full tool if your input is actually decimal/octal/binary.
“My hex is two’s complement”
This converter treats -1A as a signed number with a leading minus sign.
If you have a fixed-width two’s complement value (like FF meaning −1 in an 8-bit byte), you need the bit width to interpret negatives.
Notes
- This is number base conversion for integers, not text/byte encoding.
- Everything runs locally in your browser — nothing is uploaded.