Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal bases instantly with our free converter tool.
Convert numbers between binary, octal, decimal, and hexadecimal bases instantly with our free converter tool.
Computers store all data as binary (base 2). Other bases — octal and hexadecimal — are shorthand notations that map cleanly to binary, making it easier for programmers to read and write binary values.
One hex digit represents exactly 4 binary bits (a nibble), so hex is a compact, human-readable way to write binary. A byte (8 bits) is exactly two hex digits — e.g., 0xFF = 255. This maps neatly to memory addresses, color codes, and cryptographic hashes.
Group the binary digits into groups of 4 from the right, then convert each group: 1010 1111 → A F → AF. If the leftmost group has fewer than 4 bits, pad with leading zeros.
Unix permissions like 755 or 644 are octal numbers. Each digit represents read/write/execute for owner, group, and others: 7 = rwx (111 binary), 5 = r-x (101 binary), 4 = r-- (100 binary).