How to use the Number Base Calculator
- Choose conversion, addition or subtraction, then select the input base.
- Enter signed whole numbers using only digits valid for that base; hexadecimal accepts A–F in either case.
- Review the exact result in binary, octal, decimal and hexadecimal.
Positional number-base conversion
Where:
- = selected base: 2, 8, 10 or 16
- = digit value at position i, starting from the right at position zero
- = signed integer represented by the digit string
Show as plain text
Integer value = Σ(digit × base^position) Addition and subtraction operate on exact integer values, then re-encode the result in each base.
Each digit is multiplied by its positional power of the selected base and summed to obtain an integer. The result is formatted in each supported base.
All arithmetic uses BigInt. A minus sign denotes a mathematical negative integer; no two's-complement width, overflow or bit-pattern convention is implied.
Assumptions and limitations
- Only integers are supported; fractional values, base prefixes and digit separators are not accepted.
- Inputs are limited to 1,024 digits each. Hexadecimal digits may be uppercase or lowercase.
Example: Convert binary 1010 to other bases
- Read from right to left: 0×2⁰ + 1×2¹ + 0×2² + 1×2³.
- The decimal value is 0 + 2 + 0 + 8 = 10.
- Ten is 12 in octal and A in hexadecimal.
When to use the Number Base Calculator
- Converting integer values between binary, octal, decimal and hexadecimal.
- Adding or subtracting base-2 or base-16 integers exactly.
- Convert digital sizes with the download time calculator or compare data rates with the bandwidth calculator.
Number Base Calculator FAQs
How do I enter a negative binary number?
Put a minus sign before its magnitude, for example -101. This is a mathematical signed integer, not a two's-complement bit pattern.
Are lowercase hexadecimal digits accepted?
Yes. Input accepts a–f or A–F; hexadecimal output is displayed in uppercase.
Does the calculator support fractions or bitwise operations?
No. It supports signed integer conversion, addition and subtraction only.
How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.