Integer Base Converter
Convert integers between any number bases from 2 to 64. Supports binary, octal, decimal, hexadecimal, base64, and custom bases with BigInt precision.
What Is an Integer Base Converter?
An Integer Base Converter lets you convert whole numbers between any two number bases from 2 up to 64. Whether you need to switch between binary, octal, decimal, hexadecimal, or even base64, this tool handles it instantly using BigInt arithmetic so there are no overflow issues with large values.
How Does It Work?
Every number system has a base (also called radix) that determines how many unique digits it uses. Decimal (base 10) uses digits 0–9, binary (base 2) uses 0–1, and hexadecimal (base 16) uses 0–9 and A–F. The converter takes your input number, converts it to a decimal equivalent internally using BigInt, and then expresses that value in the target base.
For example, the decimal number 42 appears as 101010 in binary, 52 in octal, 2A in hexadecimal, and 2a in base36. The tool shows all these representations side by side so you can compare them at a glance.
Common Number Bases
- Binary (Base 2): Uses digits 0 and 1. Fundamental to digital electronics and computing.
- Octal (Base 8): Uses digits 0–7. Historically used in Unix file permissions and some programming contexts.
- Decimal (Base 10): Uses digits 0–9. The standard number system for everyday use.
- Hexadecimal (Base 16): Uses digits 0–9 and letters A–F. Widely used in programming for memory addresses, color codes, and binary shorthand.
- Base64 (Base 64): Uses A–Z, a–z, 0–9, +, and /. Commonly used for encoding binary data in text form (e.g., email attachments, data URIs).
How to Use the Integer Base Converter
- Type or paste your number into the Enter Number field.
- Select the Input Base that matches your number’s original base.
- Choose a Custom Output Base to see the result in any base from 2 to 64.
- The output panel instantly shows the value in binary, octal, decimal, hexadecimal, base64, and your chosen custom base.
Frequently Asked Questions
Frequently Asked Questions
What is the largest base supported?
This converter supports bases 2 through 64. Base64 uses the characters A–Z, a–z, 0–9, +, and / for a total of 64 unique digits.
Does this tool work with very large numbers?
Yes. The converter uses JavaScript BigInt internally, which can handle arbitrary-precision integers. There is no practical limit on input size, making it suitable for cryptographic or scientific use cases.
Why do I see letters in hexadecimal output?
Hexadecimal (base 16) needs 16 unique digits. It uses 0–9 for values zero through nine, and the letters A–F (or a–f) for values ten through fifteen. This is standard convention in computing.
Can I convert negative numbers?
This tool is designed for non-negative integers. Negative numbers typically require a signed representation (two’s complement, sign-magnitude, etc.) which is not handled here.
Is this tool different from the standard All Number Converter?
Yes. The Integer Base Converter supports every base from 2 to 64, including uncommon bases like base32 and base36, plus a fully customizable output base. The standard All Number Converter focuses on the four most common bases (binary, octal, decimal, hexadecimal).
What is BigInt and why is it used here?
BigInt is a JavaScript data type that can represent integers with arbitrary precision. Standard JavaScript numbers lose precision beyond 2⁵³, but BigInt handles values of any size, which is essential for accurate base conversion of large numbers.