Number System Conversion

This free online number system converter instantly converts any number between binary, octal, decimal, and hexadecimal, all at once. Enter a value, pick the base it's currently in, and see every equivalent representation right away.


How to Use the Number System Converter

  1. Select the number system your value is currently in from the "From Base" dropdown.
  2. Type the value into the "Value" field, using only the digits valid for that base.
  3. Click "Convert" to see the equivalent binary, octal, decimal, and hexadecimal values all at once.

How the Four Results Are Produced

Whatever base you start from, the tool first checks that every character is a legal digit for that base, then reads the input into a single whole-number value. That value is then written out four times: in base 2, base 8, base 10 and base 16. Hex letters can be typed in either case and are always shown in capitals in the result.

Every positional system works the same way: each digit is multiplied by the base raised to the power of its position, counting from 0 on the right. Hex 1F4, for instance, is 1 × 256 + 15 × 16 + 4 × 1 = 500.

Worked Example: Hex 1F4

Select Hexadecimal, enter 1F4 and convert. The results are decimal 500, binary 111110100 and octal 764. You can check the octal answer through binary: split 111110100 into threes from the right as 111 110 100, which reads 7, 6, 4.

Going from hex to octal by hand is easiest through binary rather than decimal. Write each hex digit as four bits, then regroup the bits in threes. Hex 3FA is 0011 1111 1010, which regrouped is 1 111 111 010, or octal 1772.

Quick Reference Table

DecimalBinaryOctalHex
711177
81000108
10101012A
15111117F
16100002010
64100000010040
100110010014464
25511111111377FF
256100000000400100
1000111110100017503E8

Notice that "10" means a different amount in each system: two in binary, eight in octal, ten in decimal and sixteen in hex. When writing numbers for others, label the base, for example with a subscript or a prefix like 0x for hex.

Where Each System Shows Up

  • Binary: digital logic, bit flags, subnet masks and anything describing individual on/off states.
  • Octal: Unix and Linux file permissions such as 644 and 755.
  • Decimal: everyday quantities, and the form most error codes and IDs are quoted in.
  • Hexadecimal: colour codes, memory addresses, MAC addresses, Unicode code points and checksums.

The tool handles non-negative whole numbers. Exact results are guaranteed up to 9007199254740991 in decimal (1FFFFFFFFFFFFF in hex); beyond that the last digits may be rounded.

Frequently Asked Questions

It supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16), converting between all four at the same time.

Binary allows only 0-1, octal allows 0-7, decimal allows 0-9, and hexadecimal allows 0-9 plus letters A-F (for values 10-15).

Decimal 42 equals 101010 in binary, 52 in octal, and 2A in hexadecimal. Try it yourself by selecting Decimal and entering 42 above.

No. Remove the prefix first and choose the base from the dropdown instead. For a colour such as #1E90FF, select Hexadecimal and enter 1E90FF. Spaces, underscores and separators used to group digits must also be removed.

Digits only have meaning together with a base. Entering 100 with "From Base" set to Binary means four, with Octal it means sixty-four, and with Hexadecimal it means 256. Always check the dropdown before converting, as a wrong base is the most common cause of an unexpected result.
No ratings yet — be the first!
Rate this calculator:
Was this tool helpful?