Convert numbers between binary, octal, decimal and hexadecimal instantly. Edit any field to update all others.
A number base is how many digits a counting system uses. People count in base 10, while computers work in base 2. This converter translates between binary, octal, decimal and hexadecimal, shows the bits visually and supports custom bases up to 36.
chmod 755 means read, write and execute for the owner, and read and execute for everyone else.#FF8800, MAC addresses and hashes are written in hex because each hex digit is exactly four bits.Decimal 200 is 11001000 in binary, 310 in octal and C8 in hexadecimal. Reading binary from the right, the positions stand for 1, 2, 4, 8, 16, 32, 64 and 128, and here 128 + 64 + 8 = 200.
0b for binary, 0o for octal and 0x for hex. In some languages a plain leading zero also means octal, which can silently change a number.11111111 is 255 as an unsigned byte but -1 as a signed one.