Skip to content

Hex to Decimal Converter

Paste a hex value (0x prefix and spaces are fine) to get its decimal value, with every digit’s power of 16 shown.

v2026.10.07

Hex uses only 0–9 and A–F

In decimal (base 10)

1,000

Hex 3 E8 is 1,000 in decimal (base 10).

162256
16116
1601

3×256 + 14×16 + 8 = 1,000

Tap a digit to step it up. Each tile is worth its digit × 16n.

Bytes in memory2 bytes, big- and little-endian
Big-endiannetwork order03+0E8+1
Little-endianx86 and ARM memoryE8+003+1

The +0, +1 … under each byte is its address offset. Big-endian puts the most significant byte first; little-endian puts it last.

How this works: Method, 1 source, Checked against 1 worked example,

How this works

Method

Hexadecimal is base 16. It needs sixteen digit symbols, so after 0–9 it uses letters: A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. Each place is worth 16 times the one to its right: 1, 16, 256, 4,096, 65,536 and so on. Full method

How it’s tested

One worked example for this page is checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • Rebuilt with 18 conversion pages, including text to binary and hex, two’s complement, IEEE 754 floating point, a bitwise calculator and Roman numerals, each with its method and a table.
  • Added key facts with worked examples of converting between bases.
  • Redesigned: the working shown step by step, and the same number in the other common bases under the answer.
  • Fixed large numbers: values above 2^53, such as 64-bit hex, now convert exactly instead of rounding.
  • First published.

Every change on What’s new

How we make toolsReport a mistake

How to convert hex to decimal

Hexadecimal is base 16. It needs sixteen digit symbols, so after 0–9 it uses letters: A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. Each place is worth 16 times the one to its right: 1, 16, 256, 4,096, 65,536 and so on.

Multiply each digit’s value by its place and add the results. For 1A3F: 1 × 4,096 + 10 × 256 + 3 × 16 + 15 × 1 = 4,096 + 2,560 + 48 + 15 = 6,719.

Prefixes only say the base and are not digits: 0x1A3F in C, JavaScript or Python, #1A3F in some assemblers, 1A3Fh in Intel notation. This converter ignores 0x, spaces and underscores.

value = Σ digitᵢ × 16ⁱ, with A–F standing for 10–15

Hex digits and common hex values in decimal

The sixteen hex digits, then the round hex numbers and limits that show up in code and memory sizes.

The sixteen hex digits, then the round hex numbers and limits that show up in code and memory sizes.
HexDecimal
00
11
22
33
44
55
66
77
88
99
Show all 33 rows
A10
B11
C12
D13
E14
F15
1016
2032
4064
64100
7F127
80128
FF255
100256
3E81,000
4001,024
FFF4,095
10004,096
7FFF32,767
FFFF65,535
1000065,536
7FFFFFFF2,147,483,647
FFFFFFFF4,294,967,295

Frequently Asked Questions

What is FF in decimal?

FF is 255: 15 × 16 + 15. It is the largest value of one byte, which is why colour channels (#FF0000) and IP masks (255) top out there.

Is hex case-sensitive?

No. ff, FF and Ff are the same number. Style guides differ (CSS colours are usually lower case, memory dumps upper case), but the value is identical.

Why do programmers use hex instead of decimal?

One hex digit is exactly four bits, so a byte is always two hex digits and a 32-bit word eight. Bit patterns stay readable in hex, while in decimal they turn into numbers with no visible structure.