How to use
This converter moves integers between bases 2, 8, 10 and 16 without routing through limited-precision JavaScript Number values. It uses BigInt, so the integer remains exact for large supported inputs and all four representations are returned together.
- Choose the base of the input integer.
- Type the integer using digits valid for that base.
- An optional leading + or − sign is supported.
- Calculate to see exact binary, octal, decimal and hexadecimal forms.
How it is calculated
Example
Hexadecimal FF equals decimal 255, octal 377 and binary 11111111. Entering 255 in base 10 produces the same exact integer representations.
Important notes
This tool is for integers only, not binary fractions, floating-point encodings or ASCII text. Hexadecimal accepts A–F case-insensitively. The 512-character limit prevents excessively large browser workloads.
Frequently asked questions
Is conversion exact for large integers?
Yes within the input limit; it uses BigInt integer arithmetic rather than floating-point rounding.
Should I type 0x before hexadecimal input?
No. Select base 16 and enter the digits themselves, such as FF or 1A3.
Are fractions such as binary 10.101 supported?
No. This version handles integers only.
Is this calculator free?
Yes. It is free to use and requires no account.