Mathematics
Integer number-base converter
Convert signed integers between number bases 2 to 36 with exact arithmetic and see the binary, octal, decimal and hexadecimal forms at once.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows; long integers keep every digit you entered. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.
Result
Formula / calculation:
Integer digits only, at most 80 after removing spaces/underscores/apostrophes; letters A–Z are case-insensitive. No decimal point or automatic prefix override: select the actual base. Output is exact, no floating-point rounding. A separate UK form encodes 1 to 32 entered ASCII decimal digits independently as unsigned 8421 BCD, retaining all leading zeros. Each digit has four bits: 12 becomes 0001 0010, not the ordinary binary integer 1100. It has a separate current/saved CSV/TXT notebook. No decoding, signed or packed decimal, sign nibble, decimal fractions, BCD arithmetic or hardware transport format.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Exact integer and symbol arithmetic; formula and interpretations appear with the result. Integer digits only, at most 80 after removing spaces/underscores/apostrophes; letters A–Z are case-insensitive. No decimal point or automatic prefix override: select the actual base. Output is exact, no floating-point rounding. A separate UK form encodes 1 to 32 entered ASCII decimal digits independently as unsigned 8421 BCD, retaining all leading zeros. Each digit has four bits: 12 becomes 0001 0010, not the ordinary binary integer 1100. It has a separate current/saved CSV/TXT notebook. No decoding, signed or packed decimal, sign nibble, decimal fractions, BCD arithmetic or hardware transport format.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Signed integer digits (up to 80)
- FF
- Input base (2–36)
- 16
- Output base (2–36)
- 10
Result
- Result
- 255
- Binary
- 11111111
- Octal
- 377
- Decimal
- 255
- Hexadecimal
- FF
Frequently asked questions
How do I convert a number between bases?
Enter the integer, choose the input base and the output base, each from 2 to 36. The tool also shows binary, octal, decimal and hexadecimal forms. FF in base 16 gives 255 in base 10.
How long can the number be?
At most 80 digits after removing spaces, underscores and apostrophes. Letters A to Z are case-insensitive.
Can I convert negative or decimal numbers?
The tool converts a signed integer. There is no decimal point or automatic prefix override, so select the actual base.
Is the result exact?
Yes. Output is exact, with no floating-point rounding.
What is 8421 BCD in this tool?
A separate form encodes 1 to 32 ASCII decimal digits as unsigned 8421 BCD. Each digit has four bits, so 12 becomes 0001 0010.
Does the BCD form keep leading zeros?
Yes. For example, 007 keeps three groups.