ToolsArena24

Hexadecimal Converter – Hexadecimal to Decimal, Binary, Octal and Text

Maintained by the ToolsArena24 team. Methodology and test scope

Quick answer: 255 in decimal is FF in hex. To convert hex to decimal, multiply each digit (A=10 … F=15) by its power of 16 and add.

Number converter

Text converter (UTF-8 / ASCII)

Hexadecimal conversion table

HexadecimalDecimalBinaryOctal
0000
1111
22102
771117
88100010
A10101012
F15111117
10161000020
203210000040
40641000000100
641001100100144
7F1271111111177
FF25511111111377
3E8100011111010001750

How hexadecimal conversion works

Each hex digit is a power of 16 and A-F stand for 10-15. Example: 0x2F = 2 × 16 + 15 = 47. One hex digit is exactly 4 bits, so FF = 1111 1111 = 255, the largest value of one byte. Colors such as #FF8800 use hex bytes. Hexadecimal uses 0-9 and A-F: type in any box and every other box updates instantly.

What is a hexadecimal number?

Hexadecimal (hex) is the base-16 number system, with digits 0-9 and A-F. One hex digit equals 4 bits, so a byte is always 2 hex digits.

Which alphabet and section should I choose?

The Hexadecimal page names its accepted digits as 0-9 and A-F. The number section and the UTF-8 text section have separate purposes and error messages. Start in the section that describes your source, then compare with the worked examples below. A character code can also be written as an integer, but that does not make every entered integer a text string. Retain the section name and base when copying a result into code, notes or a data import.

How does positional notation work?

Each position represents a power of the selected base. In hexadecimal, FF means fifteen times sixteen plus fifteen, or 255. In binary, eight ones sum the powers 128, 64, 32, 16, 8, 4, 2 and 1, also giving 255. Octal 377 gives three times 64 plus seven times 8 plus seven, again 255. These forms describe one integer with different digit alphabets; they are not three unrelated measurements. Leading zeroes do not change an integer’s value, while a leading minus sign changes its sign.

Why are the number and text sections separate?

The integer section converts a whole numerical value. The text section encodes each character into UTF-8 bytes and displays those byte values. The decimal integer 65 is therefore different from the two-character text 65, whose bytes are the codes for the characters six and five. Similarly, entering hexadecimal 41 as a number produces decimal 65, while interpreting byte 41 as text produces A. Choose the section according to whether the source is a number or encoded text; otherwise a plausible-looking answer can represent the wrong operation.

How do Unicode characters become bytes?

ASCII characters have one UTF-8 byte, which is why A can be shown as decimal 65, binary 01000001 or hexadecimal 41. An accented letter or emoji can use several bytes. Do not split those bytes into unrelated characters when copying a encoded text example. Text decoding groups the bytes according to UTF-8 and can reject a malformed sequence. Eight binary digits describe one byte, not necessarily one visible character. Preserve byte boundaries when a destination requires separated values, and preserve the complete sequence for non-ASCII text.

What makes an integer input invalid?

Only digits from the selected alphabet are valid. Binary does not contain 2, octal does not contain 8 or 9, and hexadecimal stops at F. The documented radix prefix belongs to the corresponding base rather than being an arbitrary label to add in every box. Fractions are not supported by the whole-number converter. Removing a decimal point changes the value instead of converting it. BigInt keeps large whole numbers exact, so a long integer does not need to be shortened to fit ordinary floating-point precision.

How do I check a conversion independently?

For a short integer, expand its digits as powers of the base and add the contributions. For the reverse direction, repeatedly divide by the destination base and read the remainders in reverse order. Compare with the worked 255 example before testing a long integer. For text, use a small sample containing an ASCII letter and a non-ASCII character, then decode it with the same byte convention. A round trip checks consistency of notation. It does not identify the text’s author or make the decoded content safe to execute.

What should I preserve when copying the result?

Keep the chosen base and whether the value came from the number or text section beside the output. A bare sequence such as 10 can mean decimal ten, binary two, hexadecimal sixteen or octal eight. Byte examples may include leading zeroes to keep eight binary digits together, even though those zeroes are unnecessary for a whole integer. Avoid inserting line-wrap markers into the value when copying from a document. For text, verify separators and byte order in the receiving application before assuming that it uses the same UTF-8 convention.

How do I use this hexadecimal converter?

Type in any box: the other boxes update instantly. The number tool converts whole numbers of any size; the text tool converts each character to its byte values and back.

Does it handle very large numbers?

Yes. It uses arbitrary-precision integers (BigInt), so a 100-digit number converts exactly. Fractions are not supported: enter whole numbers only.

Is my text sent to a server?

No. The conversion runs in your browser; nothing you type leaves your device.

What does the 0x prefix mean?

0x marks a hexadecimal number in code (0xFF = 255). You can type it or leave it out; the converter accepts both.