Hex to Decimal Converter

Convert hex and decimal whole numbers with arbitrary precision.

Decimal

Ready

How hex number conversion works

Example FF 255
  1. Each hex digit is worth 16 times the digit to its right.
  2. Two hex digits form one byte, so FF equals 255.
  3. EncodeLab uses arbitrary-precision integers, so large values are exact.

Read hex by place value

The rightmost digit counts ones, the next counts sixteens, then 256s, then 4096s. For A0, that is 10 × 16 + 0 = 160. For FF, it is 15 × 16 + 15 = 255.

Hex numbers versus hex text

This converter works with whole numbers. To encode words as hex bytes, use the text-to-hex tools, which write UTF-8 bytes rather than one numeric value.

Related tools

Frequently asked questions

What does FF equal in decimal?

FF equals 255: the first F is 15 × 16 and the second is 15, so 240 + 15 = 255.

Is my input uploaded?

No. EncodeLab performs this conversion locally in your browser. Your input is not sent to an EncodeLab server or stored by us.

Can it convert large numbers?

Yes. Conversion uses arbitrary-precision integers, so very large values are never rounded.

Are 0x prefixes accepted?

Yes. Prefixes are optional, and spaces, commas, colons, hyphens, and underscores between digits are accepted.