Number Base Converter
Convert numbers between binary, octal, decimal and hexadecimal instantly. Edit any field to update all others.
Frequently Asked Questions
What are number bases used for in programming?
Binary (base 2) is the fundamental language of computers — all data is stored as 0s and 1s. Hexadecimal (base 16) is used to represent binary data compactly — memory addresses, color codes (#FF5733), byte values. Octal (base 8) is used in Unix file permissions (chmod 755).
How do I convert binary to decimal manually?
Multiply each bit by 2 raised to its position (counting from 0 on the right). 1011 in binary = 1×8 + 0×4 + 1×2 + 1×1 = 8+0+2+1 = 11 in decimal.
What is the maximum number I can convert?
JavaScript handles integers safely up to 2^53 - 1 (9,007,199,254,740,991). For larger numbers the converter uses BigInt internally where supported.