ToolsArena24

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

Maintained by the ToolsArena24 team. Methodology and test scope

Quick answer: 255 in decimal is 11111111 in binary, FF in hex and 377 in octal. Divide by the target base and read the remainders bottom-up.

Number converter

Text converter (UTF-8 / ASCII)

Decimal conversion table

DecimalBinaryHexOctal
0000
1111
21022
711177
81000810
101010A12
151111F17
16100001020
321000002040
64100000040100
100110010064144
12711111117F177
25511111111FF377
100011111010003E81750

How decimal conversion works

Decimal is the everyday base-10 system. To convert it, divide by the target base repeatedly and read the remainders from last to first: 13 ÷ 2 gives 1101 in binary, 13 ÷ 16 gives D in hex, 13 ÷ 8 gives 15 in octal. Decimal uses 0-9: type in any box and every other box updates instantly.

What is a decimal number?

Decimal is the base-10 number system used every day, with digits 0-9; each position is a power of 10.

Which alphabet and section should I choose?

The Decimal page names its accepted digits as 0-9. 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 decimal 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.