Number System Converter
Convert between binary, octal, decimal and hexadecimal instantly
Real-Life Guide to Using the Number System Converter
Binary, hex, octal, decimal
When this calculator is useful
Needed when working with computer science coursework, networking (like subnet masks or MAC addresses), or programming tasks that require translating a number between binary, octal, decimal, and hexadecimal — for instance, decoding a hex color code or a binary IP address octet.
Common Mistakes
- Forgetting that each hexadecimal digit represents exactly 4 binary bits — trying to convert binary 1010 to hex by working digit-by-digit instead of grouping into 4-bit chunks, which is the actual shortcut method.
- Misreading a decimal-looking number as if it were already binary — assuming binary "101" equals decimal 101, when it actually equals decimal 5 (1×4 + 0×2 + 1×1).
- Dropping leading zeros that matter for fixed-width representations — converting decimal 5 to binary as just "101" when an 8-bit context needs "00000101" to correctly represent one byte.
- Confusing octal's leading zero notation with decimal — reading a number written as "017" in a programming context as decimal seventeen, when many languages interpret a leading zero as octal, making it equal to decimal 15.
- Mixing up hexadecimal letter digits with English letters when transcribing by hand — misreading hex digit "B" (=11) as the number 8, or confusing "0" (zero) with the letter "O", which isn't a valid hex digit at all.
How to Interpret Results
Cross-check the output by converting it back to decimal in your head using place values (each binary digit is a power of 2, each hex digit a power of 16, each octal digit a power of 8) — if the round-trip doesn't match your original number, you likely selected the wrong "from" base.
Number System Converter FAQs
Number Systems Explained
Different number systems use different bases — the number of unique digits available. The decimal system (base 10) uses digits 0–9. Binary (base 2) uses only 0 and 1. Octal (base 8) uses 0–7. Hexadecimal (base 16) uses 0–9 and A–F.
Computers work in binary at the hardware level — all data is ultimately stored as sequences of 0s and 1s. Hexadecimal is commonly used in programming because it's a compact way to represent binary values (each hex digit = 4 binary bits).
Where Each Base Is Used
- Binary (base 2): CPU logic, boolean operations, bit manipulation in programming, data storage at hardware level
- Octal (base 8): Unix/Linux file permissions (chmod 755 = rwxr-xr-x), older computing systems, assembly language
- Decimal (base 10): All everyday arithmetic and mathematics
- Hexadecimal (base 16): Memory addresses, color codes (#FF5733), MAC addresses, cryptographic hashes, Unicode code points
Key Terms
- Bit
- A single binary digit (0 or 1). The smallest unit of digital information.
- Byte
- 8 bits. Can represent values 0–255 in decimal (00–FF in hex, 000–377 in octal, 00000000–11111111 in binary).
- Nibble
- 4 bits = half a byte. Can represent 0–15 (0–F in hex). One hex digit represents exactly one nibble.
- Two's Complement
- The way computers represent negative numbers in binary. For a signed 8-bit integer, the range is −128 to +127 instead of 0 to 255.