Number Base Converter Online
Convert instantly between binary, octal, decimal, and hexadecimal — type in any field.
Type any number into any field — binary, octal, decimal, or hexadecimal — and the other three update instantly. Negative numbers and invalid characters are handled gracefully.
Frequently Asked Questions
What is hexadecimal?
Hexadecimal (base 16) uses digits 0-9 and letters A-F. One hex digit = 4 bits. Two hex digits = 1 byte. Used for colour codes, memory addresses, and byte-level data representation.
When do programmers use binary?
Binary is used for bitwise operations (&, |, ^, ~, <<, >>), setting and testing individual flags, and understanding hardware registers. Seeing each bit position makes bit-level logic much clearer.
What is octal used for?
Octal (base 8) is used primarily for Unix/Linux file permissions (chmod 755). Each octal digit represents exactly 3 bits, making it a compact representation for permission triads (read/write/execute).
How do I convert decimal to binary?
Divide the number by 2 repeatedly and read the remainders in reverse. Example: 13 ÷ 2 = 6 R1, 6 ÷ 2 = 3 R0, 3 ÷ 2 = 1 R1, 1 ÷ 2 = 0 R1 → binary: 1101. This tool does it automatically.
Related Tools