Navigation

Binary Converter

Convert nonnegative integers exactly between four bases.

Exact nonnegative integer conversion, up to 4,096 input digits. Enter digits without radix prefixes, signs or fractions.

Binary
Decimal
Hex
Octal
Share

Last reviewed: Β· Testing methodology

How to use

Convert nonnegative integers exactly between four bases.

1

Enter your input

Up to 4,096 digits without signs, fractions or prefixes. Use Try example where available to see the expected shape.

2

Choose options and run

Select the relevant mode or settings. Automatic tools update as you type; other tools use the labeled primary action.

3

Review the result

Check the result against your input, then use the available copy or download action. Edits clear or recompute the result.

Limits and questions

Inputs are processed in your browser. Analytics and advertising can make separate network requests.

A result you can check

Decimal 9007199254740993 becomes hexadecimal 20000000000001. Converting that hex value back must retain the original final digit.

Before using the result

Leading zeros and input letter case are normalized. The output does not preserve an original word size.

Frequently asked questions

What does this tool support?
Up to 4,096 digits without signs, fractions or prefixes. Invalid digits clear output. Integers retain precision above the JavaScript safe-integer range.
Where is my input processed?
Tool calculations and conversions run locally in your browser. Existing analytics and advertising requests are separate from input processing.