Home › Converters › Hex to Decimal

Hex to Decimal

A datasheet, memory dump or error message hands you a hexadecimal value like FF or 0x1A3, and you need the plain decimal number it stands for. This hex to decimal converter does it instantly: type the hex — lowercase is fine, and the 0x prefix is accepted — and get the exact decimal value, even for very long hex strings. The base boxes also convert binary and octal in any direction, and the table below the result shows your number in all four bases.

The same value in all four bases

BaseValue
Binary (base 2)
Octal (base 8)
Decimal (base 10)
Hexadecimal (base 16)

How it works

Hexadecimal is base 16: sixteen digits — 0–9 plus the letters A, B, C, D, E and F for the values ten through fifteen — with each position worth a power of sixteen. From the right, the positions are worth 1, 16, 256, 4,096, 65,536 and so on. Hex is everywhere in computing because it is compact: one hex digit is exactly four binary bits, a byte is two hex digits, and a color channel, memory address or error code fits in a short string.

Decimal is base 10, the system of everyday counting, prices and measurements. Converting hex to decimal means evaluating the hex string in tens: multiply every digit by its place value and add the results. This converter does that evaluation with exact whole-number arithmetic, so a 16-digit hex value — a full 64-bit number — converts precisely instead of being rounded by floating point.

Decimal value = (rightmost digit × 1) + (next digit × 16) + (next digit × 256) + (next digit × 4,096) + … — place values are powers of 16: 16^0, 16^1, 16^2, 16^3, …, and the letters count as A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

To convert by hand, work from the right: multiply each hex digit by 1, 16, 256, 4,096 and so on, then add. Three quick anchors cover most everyday values: the rightmost digit is worth its face value, so F alone is 15; two digits top out at FF = 255; and 100 in hex is 256, not one hundred. Letters are case-insensitive — ff, FF and Ff are identical — and a leading 0x is just a label, not part of the number. Swap the base boxes and this same tool converts decimal, binary and octal in any direction.

Worked example

A support technician in Denver is reading a sensor manual that lists the maximum reading as the hex value FF, and she needs it in decimal to set an alarm threshold.

Step 1: Split the digits — F and F. Each F is worth 15.
Step 2: Multiply by the place values from the right: the left F sits in the 16s place, so 15 × 16 = 240; the right F sits in the 1s place, so 15 × 1 = 15.
Step 3: Add them: 240 + 15 = 255.
Step 4: So the hex value FF is 255 in decimal.

That is exactly what the converter shows for FF: 255 — the largest value a single byte holds, which is why FF appears as a maximum in everything from color channels to device registers.

Common mistakes and tips

The most common mistake is reading hex as decimal at a glance. The hex string 100 is 256 in decimal, and 10 is 16 — pure-digit hex values are the sneaky ones, because nothing about them looks foreign. Whenever a technical document reports a number, check for a base label (0x, "hex", or an h suffix) before using it. The second trap is place-value direction: powers of 16 grow from the right, so in 1A3 the 1 is worth 256, not 1.

A quick estimation trick: count the digits. Two hex digits max out at 255, three at 4,095, four at 65,535 and eight at 4,294,967,295 — each extra digit multiplies the range by 16. And if you type a letter beyond F, like G, this converter will name the bad character and stop, which is a handy way to catch typos in long addresses and hashes before they cost you an hour.

FAQ

What is FF in decimal?

FF in hexadecimal is 255 in decimal. The left F is in the 16s place (15 × 16 = 240) and the right F is in the 1s place (15), and 240 + 15 = 255.

How do I convert hex to decimal by hand?

Multiply each hex digit by its place value — 1, 16, 256, 4,096 from the right — using A = 10 through F = 15, then add the results. For 2A: 2 × 16 + 10 = 42.

Can I type lowercase hex or a 0x prefix?

Yes. Hex letters are case-insensitive (ff equals FF), and a leading 0x such as 0xFF is accepted and treated as a label, not part of the number.

What is 100 in hex as a decimal number?

The hex value 100 is 256 in decimal: 1 × 256 + 0 × 16 + 0 = 256. Hex numbers with only digits are the easiest to misread as decimal, so check the base label in your document.

How large a hex value can this converter handle?

Very large. It uses exact arbitrary-precision arithmetic, so a full 64-bit hex value like FFFFFFFFFFFFFFFF converts to its exact decimal value — 18,446,744,073,709,551,615 — without rounding.

Disclaimer: Results are conversions for guidance only. Values are rounded for display; for legal, medical, or safety-critical use, confirm with an official source or a qualified professional.