How to use Number Base Converter
- Type a number in the field for the base you have – for example hex FF or binary 1010.
- All other bases update as you type. Prefixes like 0x, 0b and 0o and separators like spaces or _ are accepted.
- Use “Other base” for anything from base 2 to base 36.
- Check the details panel for grouped digits, bit length and two’s complement at 8 to 128 bits.
About this tool
In a positional number system each digit is worth the base raised to the power of its position: hex 2F is 2 × 16 + 15 = 47. Programmers use hexadecimal because each hex digit maps to exactly four bits, so a byte is always two hex digits; octal (three bits per digit) survives in Unix file permissions such as 755. Bases above 10 use letters, up to z for 35 in base 36.
Conversions use JavaScript’s BigInt, so there is no precision limit: a 100-digit decimal number converts exactly, where ordinary JavaScript numbers silently lose accuracy above 2^53 (9,007,199,254,740,991).
Computers store negative integers in two’s complement: invert all bits of the positive value and add one. In 8 bits, −1 is 11111111 and −128 is 10000000. The details panel shows this pattern for the width you choose and tells you when a number does not fit.
Frequently asked questions
How do I convert binary to decimal by hand?
Multiply each bit by 2 raised to its position, counting from 0 on the right, and add them up. 1011 = 8 + 0 + 2 + 1 = 11.
Can it convert fractions?
No – this tool works with whole numbers (integers), which is what nearly all base conversion in programming involves.
What is the largest number it can handle?
Practically unlimited. Numbers with thousands of digits convert instantly because BigInt arithmetic is exact.
Is this tool really free?
Yes. There is no sign-up, no daily limit, no watermark and no paid tier. The site is supported by advertising shown on the page, not by charging for the tools.