Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
Binary (Base 2)
11111111
Octal (Base 8)
377
Decimal (Base 10)
255
Hexadecimal (Base 16)
FF
Key Features
- Convert numbers between binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16).
- All four representations update simultaneously as you type in any field.
- Handles large integers accurately without floating-point precision errors.
- Displays hex values in both uppercase and lowercase formats.
- Useful for programming, electronics, networking and computer science study.
- Validates input to prevent invalid characters for each base.
Frequently Asked Questions
How do I convert binary to decimal?
Each binary digit represents a power of 2 from right to left. Multiply each digit by its corresponding power and sum the results. 1101 in binary = 8 + 4 + 0 + 1 = 13.
Why is hexadecimal used in programming?
Each hex digit maps exactly to four binary bits, making it a compact way to represent binary data. Ideal for memory addresses, colour codes and bitmasks.
What is octal used for?
Octal is used for Unix file permission notation. A permission like chmod 755 uses octal, where each digit represents read, write and execute bits.