Convert numbers between decimal, binary, octal and hexadecimal.
Convert numbers between decimal, binary, octal and hexadecimal.
Enter values above and click Calculate — results will appear here with the formula explained.
Computers speak binary because transistors hold two states; hexadecimal exists purely for human convenience — each hex digit packs exactly four bits, turning unwieldy 32-bit strings like 11111111111111110000000000000000 into readable FFFF0000.
Conversion follows positional logic universal to all bases: multiply each digit by its base raised to its position power, then sum. Octal (three bits per digit) survives mainly in file permissions and legacy systems, shown here for completeness.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID
Computers speak binary because transistors hold two states; hexadecimal exists purely for human convenience — each hex digit packs exactly four bits, turning unwieldy 32-bit strings like 11111111111111110000000000000000 into readable FFFF0000. Formula: each digit position carries its base's power: e.g. hex FF = 15×16 + 15 = 255
Number Base Converter: Convert numbers between decimal, binary, octal and hexadecimal. Formula: each digit position carries its base's power: e. Example: Hex FF entered at base 16 yields decimal 255, binary 11111111 (eight ones), and octal 377 — the classic byte boundary.
Convert numbers between decimal, binary, octal and hexadecimal. Formula: each digit position carries its base's power: e.g. hex FF = 15×16 + 15 = 255
| Field | What to enter |
|---|---|
| Number | e.g. FF or 255 or 11111111 |
| Input base | Enter a value |
All fields use the exact formulas shown below — results include step-by-step breakdowns you can verify by hand.
Computers speak binary because transistors hold two states; hexadecimal exists purely for human convenience — each hex digit packs exactly four bits, turning unwieldy 32-bit strings like 11111111111111110000000000000000 into readable FFFF0000.
Conversion follows positional logic universal to all bases: multiply each digit by its base raised to its position power, then sum. Octal (three bits per digit) survives mainly in file permissions and legacy systems, shown here for completeness.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID
Hex FF entered at base 16 yields decimal 255, binary 11111111 (eight ones), and octal 377 — the classic byte boundary.
Advertisement
AdSense ready — add NEXT_PUBLIC_GOOGLE_ADSENSE_PUBLISHER_ID