Number System Converter
Convert numbers between decimal (base-10), binary (base-2), octal (base-8), and hexadecimal (base-16) systems.
✓ Runs in your browser · Updated 2026-03-31Enter values and click Convert to see results
Number Systems Explained
A number system defines how we represent quantities using symbols. The four common systems are:
- Decimal (Base 10): Uses digits 0–9. This is the everyday system we use for counting and arithmetic.
- Binary (Base 2): Uses only 0 and 1. This is the language of computers — every piece of data is ultimately stored as binary.
- Octal (Base 8): Uses digits 0–7. Commonly used in Unix/Linux file permissions (e.g., chmod 755).
- Hexadecimal (Base 16): Uses 0–9 and A–F. Widely used in programming for colours (#FF5733), memory addresses, and compact binary representation.
Common Values Reference
| Decimal | Binary | Octal | Hex | Context |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Zero / FALSE |
| 1 | 1 | 1 | 1 | One / TRUE |
| 10 | 1010 | 12 | A | — |
| 127 | 1111111 | 177 | 7F | Max signed byte |
| 255 | 11111111 | 377 | FF | Max unsigned byte / CSS colour channel |
| 256 | 100000000 | 400 | 100 | 1 byte overflow |
| 755 | 1011110011 | 1363 | 2F3 | Common Linux permission |
| 65535 | 1111111111111111 | 177777 | FFFF | Max 16-bit value |
Use in Programming
Programmers use hexadecimal to write memory addresses (0x7FFF), CSS colours (#00FF00 = green), and byte values compactly. Binary is essential for understanding bitwise operations, flags, and low-level hardware. In India's competitive exams (GATE, UGC NET CS), number system conversion is a frequently tested topic.
Related Converters
For data sizes and bits vs bytes, use the Data Storage Converter. For mathematical calculations, check the Percentage Calculator.
Frequently Asked Questions
How do I convert binary to decimal?
Multiply each binary digit by 2 raised to its position power (starting from 0 on the right) and sum them. For example, 1010 in binary = 8 + 0 + 2 + 0 = 10 in decimal.
What is the hexadecimal number system?
Hexadecimal is a base-16 number system using digits 0–9 and letters A–F (where A=10, B=11, ... F=15). It is widely used in programming and web colours.
How do I convert decimal to octal?
Divide the decimal number by 8 repeatedly and record the remainders in reverse order. For example, 65 in decimal = 101 in octal.