Number Base Converter
Type a number in any base and read it in all four at once — binary (grouped in nibbles), octal, decimal and hex. Arbitrary-precision math means even enormous values convert exactly, with no floating-point rounding.
How to use
- Pick the base your number is written in (decimal, binary, octal or hex).
- Type the number — prefixes like 0x, 0b and spaces/underscores are accepted.
- Read the value in all four bases; binary is grouped in blocks of four for readability.
Examples
1101 0110
214
D6
Supported formats
- Integers of any size (arbitrary precision — no 32/64-bit limits), including negatives.
- Input bases: 2, 8, 10, 16. Output: all four simultaneously.
Privacy
This tool runs entirely in your browser. Nothing you enter or open is sent anywhere. Privacy policy.
Limitations
- Whole numbers only — fractional values (like 10.75 to binary) are not converted.
FAQ
How do I convert binary to decimal?
Each binary digit is a power of two: 1011 = 8+0+2+1 = 11. Select Binary as the input base, type 1011, and the decimal line shows 11 with the other bases alongside.
Why do programmers use hexadecimal?
One hex digit represents exactly four binary digits, so long bit patterns compress neatly: 1111 1111 becomes FF. That's why memory addresses and color codes use hex.
Does this work for very large numbers?
Yes. Conversion uses arbitrary-precision integers, so values far beyond 64 bits convert exactly — handy for cryptography coursework.