Binary / hex converter

Enter your values

Enter an integer in binary, octal, decimal, or hexadecimal and convert it across the four common bases.

Spaces and underscores are ignored. Prefixes like 0x or 0b are optional when they match the selected base.

All required fields must be filled in.

Decimal Value

--

Enter a value and its source base to see the corresponding binary, octal, decimal, and hexadecimal forms.

Calculation History(0)
No calculations yet. Complete a calculation to see it here.

Example calculations

Tap an example to prefill the calculator with sample values.

Hex byte

Convert 7F into every major base

A quick dev-friendly example for checking byte-level values.

Result: The same value becomes 127 in decimal and 1111111 in binary.

Binary word

Convert a 16-bit binary number

Useful for students checking base conversions by hand.

Result: The converter shows the equivalent decimal, octal, and hex forms instantly.

Powered by Calc Hub