Convert numbers between different bases (decimal, binary, octal, hexadecimal) with this free online tool.
Binary is a base-2 number system that uses only two digits: 0 and 1. It's the foundation of digital computing and is used to represent all data in computers.
Octal is a base-8 number system that uses the digits 0 through 7. It was commonly used in computing as a more compact way to represent binary data.
Decimal is the standard base-10 number system that we use in everyday life. It uses the digits 0 through 9.
Hexadecimal is a base-16 number system that uses the digits 0-9 and the letters A-F (or a-f) to represent values 10-15. It's commonly used in computing to represent binary data in a more human-readable format.
Different number bases are useful for different contexts. Binary is fundamental to computing, hexadecimal provides a more compact way to represent binary data, and decimal is intuitive for human calculations.
Binary is used in digital circuits and computer memory. Hexadecimal is used for color codes in web design (e.g., #FF5733), memory addresses, and representing binary data in a more readable form. Octal was historically used in some computing contexts.
Numbers are often prefixed to indicate their base: 0b or 0B for binary (e.g., 0b1010), 0 for octal (e.g., 0777), and 0x or 0X for hexadecimal (e.g., 0xFF). Without a prefix, numbers are typically assumed to be in decimal.