Share this free calculator
Send this tool to someone who needs the calculation.
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.
Worked examples and interpreting results
Binary 1010 represents decimal 10 because its positions carry powers of 2. Changing base changes the notation, not the integer’s value: binary 1010 and hexadecimal A represent the same quantity.
| Case | Calculation | Result |
|---|---|---|
| Binary 1010 to decimal | 1×2³ + 0×2² + 1×2¹ + 0×2⁰ | 10 |
| Hexadecimal FF to decimal | 15×16 + 15 | 255 |
How to check the result
Every digit must be valid for its base: binary permits only 0 and 1; hexadecimal uses A through F for values 10 through 15. These examples concern integers, not fractional or floating-point encodings.
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.