Hex to Decimal Converter (and Decimal to Hex)

Convert hexadecimal numbers to decimal, or decimal to hexadecimal. It works for long values too.

Hex to decimal
Decimal to hex
Decimal
–
Hexadecimal
–

How it works

Hexadecimal uses sixteen symbols: 0 to 9 and A to F (A is 10, F is 15). Each position is worth a power of 16. To convert hex to decimal, multiply each digit by its power of 16 and add the results. To convert decimal to hex, divide by 16 repeatedly and read the remainders backwards.

Example

FF is 15 × 16 + 15 = 255. And 255 in hex is FF.

Frequently asked questions

What is FF in decimal?

255.

Why is hex used in computing?

One hex digit stands for four binary digits, so it is a compact way to write binary values such as colours and memory addresses.

Is it case sensitive?

No. ff and FF are the same.

More free tools: Number base converter · Binary to decimal converter · All free tools

Everything runs in your browser.