What is a Number Base Converter?
Permissions in octal, colors and memory in hex, flags in binary — base conversion is daily developer arithmetic.
Enter a number in any base and read it in all four, exact up to 2⁵³.
How to use the Number Base Converter
- Enter the number.
- Pick which base it is in.
- Read the other three.
Frequently asked questions
What do 0x, 0b and 0o mean?
Programming prefixes for hex, binary and octal — accepted here and safely ignored.
Why is hex so common?
One hex digit is exactly four bits, so bytes read as neat pairs: 255 = 0xFF.
What is chmod 755 in binary?
Each octal digit is three permission bits: 755 = rwxr-xr-x = 111 101 101.
Negative numbers?
Not supported — two’s-complement representation depends on a chosen bit width, which plain conversion doesn’t have.