Hex to Decimal Converter

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

  1. Paste your hex values into the input (left).
  2. Use one number per line.
  3. Copy the decimal results from the output (right).

Signed values are supported:

  • -1A-26
  • +FF255

Input rules (hex)

Allowed characters

Hex input may contain:

  • digits 0–9
  • letters A–F (or a–f)
  • an optional leading + or -

Examples:

  • 0
  • A
  • ff
  • 1A2B
  • -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_FF
  • 0xFF FF
  • DEAD_BEEF

Output format (decimal)

  • Output is a base-10 integer
  • Negative values keep a leading -

Examples:

  • A10
  • 1016
  • FF255
  • 10004096
  • -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.

Frequently Asked Questions

Yes. Use a leading minus sign (−) or plus sign (+). The sign is preserved in the decimal output.

Yes. This variant runs in batch mode by default: paste one hex integer per line and get one decimal result per line.

Yes. Inputs like 0xFF, -0x1A, and +0x10 are accepted in this variant.

Yes. Spaces and underscores are ignored, so values like FF_FF or 0xFF FF work.

No. You can paste lowercase (a–f) or uppercase (A–F) and it converts the same way.

Try one of our format-specific converters below

Explore Our Tools

Read More From Our Blog