Binary / Hex / Decimal Converter

CONVERSIONS

Convert a number between binary, decimal, hexadecimal, and octal. Enter the value and its base.

Decimal
—
Base 10 value.

Usage Tip

One hex digit equals exactly four binary digits, which is why hex is a handy shorthand for binary.

THE MATH
Each base uses a different set of digits
All convert through a common decimal value
Computers store numbers in binary (base 2); programmers often use hexadecimal (base 16) as a compact shorthand.
Decimal (base 10) is everyday counting; octal (base 8) appears in some systems.
Choose the base of your input, then enter the value.
Binary uses 0-1, octal 0-7, decimal 0-9, hex 0-9 and A-F.
All four representations are shown.
Practical Notes

Different number bases are just different ways of writing the same value. Decimal uses ten digits, binary uses only zero and one, octal uses zero through seven, and hexadecimal uses sixteen symbols, with the letters A through F standing for ten through fifteen. Computers work in binary, and hexadecimal is a compact way to read it because each hex digit represents exactly four binary digits.

When entering a value, make sure the input base matches how the number is written, since the text 101 means five in binary but one hundred and one in decimal. Letters in hexadecimal values are not case sensitive. Programmers often meet hex in color codes, memory addresses, and byte values, and octal in file permission settings.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.