Converting a number between bases means representing the same value using a different set of digits. A decimal (base 10) number can be expressed exactly in binary (base 2), hexadecimal (base 16), or any other base.
Number Base Converter
Convert integers between binary, octal, decimal, hexadecimal, and any base from 2 to 36.
Exact base conversion, no precision loss.
Number base conversion is fundamental in computing. Binary (base 2) is the native language of processors; octal (base 8) and hexadecimal (base 16) are compact representations used in memory addressing, colors, file permissions, and protocols. This tool uses BigInt for precision on numbers of any size.
Enter the number and select the source base.
- Enter the integer to convert (positive or negative).
- Select or enter the base the number is represented in (2 to 36).
- Check the results in binary, octal, decimal, and hexadecimal, or convert to a custom base.
Sources and references for this tool
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
- The Art of Computer Programming, Vol. 2 — Seminumerical AlgorithmsDonald E. Knuth — Classic reference for number representation and conversion between bases.
- BigIntMDN Web Docs — API used for arbitrarily large integers without overflow.
- IEEE 754-2019 — Floating-Point ArithmeticIEEE — Context on floating-point numeric representation limits.