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.
Convert hex and decimal whole numbers with arbitrary precision.
FF 255 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.
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.
FF equals 255: the first F is 15 × 16 and the second is 15, so 240 + 15 = 255.
No. EncodeLab performs this conversion locally in your browser. Your input is not sent to an EncodeLab server or stored by us.
Yes. Conversion uses arbitrary-precision integers, so very large values are never rounded.
Yes. Prefixes are optional, and spaces, commas, colons, hyphens, and underscores between digits are accepted.