Numbers Converter
Convert a number between any two numeral systems (base 2 to base 36)
Any base from 2 to 36 is supported — not just the six shown above. Edit the value in either box to pick a custom base.
Popular Numbers Unit Conversions
(Use the converter above for these — dedicated pages for each pair are coming soon.)
How Numeral Systems & Base Conversions Work
A numeral system represents numbers using a specific base (radix). In any positional base-N system, each digit represents a value multiplied by a power of N, determined by its position from right to left (starting at power 0).
The Four Core Systems in Computing
- Decimal (Base 10): The universal human counting system, utilizing digits
0through9. - Binary (Base 2): The fundamental language of modern digital electronics, where transistors represent states as
0(off) or1(on). - Octal (Base 8): Uses digits
0through7. Popular in early computing and still standard in Unix file system permission octets (e.g.,chmod 755). - Hexadecimal (Base 16): Uses digits
0–9followed by lettersA–F(representing 10 through 15). Used everywhere in computing for memory dumps, assembly language, IPv6 addresses, and HTML/CSS hex colors.
Quick Conversion Reference Table
| Decimal (Base 10) | Binary (Base 2) | Octal (Base 8) | Hexadecimal (Base 16) |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 0001 0000 | 20 | 10 |
| 32 | 0010 0000 | 40 | 20 |
| 64 | 0100 0000 | 100 | 40 |
| 128 | 1000 0000 | 200 | 80 |
| 255 | 1111 1111 | 377 | FF |
Step-by-Step Conversion Methods
1. Converting Decimal to Any Base (Division-Remainder Method): Divide the decimal number by the target base B. Record the remainder. Divide the quotient again by B and record the new remainder. Repeat until the quotient reaches 0. Reading the remainders backwards (from last to first) produces the result.
2. Converting Any Base to Decimal (Positional Expansion): Multiply each digit by base^position (where position 0 is the rightmost digit) and sum all the products.
3. Binary to Hex Shortcut (4-bit Nibbles): Because 2⁴ = 16, every group of 4 binary bits translates directly into one hexadecimal character without any multi-step division.