Binary / Hex / Decimal Converter

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.
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.