The converter supports base 2 binary, base 8 octal, base 10 decimal, and base 16 hexadecimal integers.
Number Base Converter
Enter an integer in binary, octal, decimal, or hexadecimal form and instantly calculate equivalent values in the other number systems. Large integers are processed accurately with JavaScript BigInt.
- Instant results
- Mobile friendly
- Free to use
Convert binary, octal, decimal, and hexadecimal
Enter a value in any field. The other number systems update instantly in this browser.
Binary
Octal
Decimal
Hexadecimal
Type an integer into any number-system field.
Conversion details
How the source value expands
Enter a value to see a positional-notation explanation.
How to use the Number Base Converter
Follow these steps to get a clear result.
- 1
Choose or click the field for the number system you want to enter.
- 2
Type an integer using digits valid for binary, octal, decimal, or hexadecimal.
- 3
Review the other three fields as they update automatically.
- 4
Copy an individual value, copy all results, or inspect the conversion explanation.
Number Base Converter FAQ
Yes. The tool uses JavaScript BigInt rather than ordinary Number values, allowing accurate conversion of integers larger than the Number safe-integer range, subject to browser memory limits.
Yes. Binary can use 0b, octal can use 0o, and hexadecimal can use 0x. Prefixes are optional because each field already identifies its number base.
No. This version converts integers only. Decimal points and fractional base values are rejected to preserve exact BigInt conversion.
A leading minus sign is preserved while the absolute integer magnitude is converted. The output is mathematical signed notation, not a fixed-width two’s-complement representation.