Base Converter
Convert a decimal integer into binary, octal, and hexadecimal values at the same time.
How to use the Base Converter
What does the Base Converter do?
Convert a decimal integer into binary, octal, and hexadecimal values at the same time; It applies this page-specific rule: a number base determines which digits are valid and how place values are calculated.
Which inputs does this converter use?
To convert a decimal integer into binary, octal, and hexadecimal values at the same time, enter Whole number, Input number base, Equivalent values; keep every value in the same example; where available, choose between Detect prefix or use decimal, Binary (base 2), Octal (base 8), Decimal (base 10), Hexadecimal (base 16) to match the required format; select Convert number bases when the values are ready; Start with a familiar case covered by this rule - Automatic mode recognizes 0b, 0o, and 0x prefixes - so the expected result can confirm the settings.
How should the converter result be read?
For a result intended to convert a decimal integer into binary, octal, and hexadecimal values at the same time, automatic mode recognizes 0b, 0o, and 0x prefixes; read equivalent values together with the original whole number rather than as an isolated answer, and confirm that its units or structure match the intended use.
What does 0x mean?
When the goal is to convert a decimal integer into binary, octal, and hexadecimal values at the same time, it marks a hexadecimal value.
Are negative numbers supported?
When using the page to convert a decimal integer into binary, octal, and hexadecimal values at the same time, yes.
Limits and accuracy
When using this converter to convert a decimal integer into binary, octal, and hexadecimal values at the same time, the calculation uses integers with arbitrary precision, so large values are not rounded to ordinary JavaScript number precision; check the result in its intended destination before relying on it for important work; keep whole number until the output has been checked in its intended destination.
How base conversion works
A number base determines which digits are valid and how place values are calculated. Binary uses 0 and 1, octal uses 0 through 7, decimal uses 0 through 9, and hexadecimal adds A through F.
Automatic mode recognizes 0b, 0o, and 0x prefixes. An unprefixed value is treated as decimal. Choose the input base manually when a value such as 100 should be interpreted as binary or hexadecimal instead.
The calculation uses integers with arbitrary precision, so large values are not rounded to ordinary JavaScript number precision.
Frequently asked questions
What does 0x mean?
It marks a hexadecimal value. 0b marks binary and 0o marks octal.
Are negative numbers supported?
Yes. Put a minus sign before the number or its prefix.
Why was a digit rejected?
The selected base does not allow it. Binary, for example, accepts only 0 and 1.