Hex to Decimal Converter
Convert hexadecimal to decimal instantly — exact at any length — with byte counts, bit widths and bulk conversion.
About this number
What It Does
This converter reads a hexadecimal number and gives its decimal value, exactly, however long it is. It accepts 0x prefixes, either case and spaced byte groups as copied from a hex dump. Alongside the value it reports how many bytes and bits the number occupies and the smallest integer type that holds it.
When to Use It
- A log or debugger shows an address, error code or ID in hex and you need the number.
- You are reading a colour component such as the 80 in #FF8000.
- You are converting values from a hex dump into numbers for a spreadsheet.
- You want to check whether a hex value fits in a 32-bit or 64-bit field.
Worked Examples
0xFF
255 — one byte with every bit set.
7FFFFFFF
2,147,483,647, the largest signed 32-bit integer (INT_MAX).
FFFFFFFFFFFFFFFF
18,446,744,073,709,551,615 — the largest unsigned 64-bit value, converted exactly.
Features
How to Use
1. Type or paste a hex number — or a list, one per line. 2. The decimal value appears alongside, line for line. 3. Use the options to group digits or add a prefix, and the swap button to convert the other way.
Common Mistakes
- Converting a number through a JavaScript Number. Above 9,007,199,254,740,991 it silently rounds, so the last digits come out wrong. This tool uses BigInt and stays exact at any size.
- Forgetting that the same digits mean different values in different bases. 10 is ten in decimal, two in binary, eight in octal and sixteen in hex — always label which base a value is in.
- Treating a minus sign as how a computer stores a negative number. Hardware uses two's complement, so a negative value's bit pattern looks nothing like its positive counterpart.
Frequently Asked Questions
Related Tools
Conversion runs in your browser with exact integer arithmetic. Nothing is uploaded.