Skip to content

Number System Converter

Binary, octal, decimal and hexadecimal.

Runs in your browser · free · no sign-up

8 bits · 3 decimal digits

About the Number System Converter

Type a number in any base and see it in the other three. Large values are supported because the tool uses BigInt arithmetic.

Computers work in binary, programmers read memory addresses and colours in hexadecimal, Unix permissions use octal, and humans use decimal. Converting between these bases is a core skill in computer science classes and a daily task in low-level programming, networking and electronics. This converter does it instantly in all four directions.

Type a number in the binary, octal, decimal or hexadecimal box and the other three update. The tool uses JavaScript BigInt arithmetic, so it handles very large numbers, such as 64-bit values or cryptographic keys, without losing precision. Hexadecimal accepts upper or lower case letters, and negative numbers can be entered with a minus sign.

Each base is just a different way of writing the same quantity. Decimal uses ten digits, binary two, octal eight and hexadecimal sixteen, with letters A to F standing for ten to fifteen. Seeing all four side by side makes patterns visible, such as how each hex digit maps to four binary digits and each octal digit to three.

How to use the Number System Converter

  1. 1Type a number in the box for its base.
  2. 2The other bases update instantly.
  3. 3Copy the value you need.

Key features

  • Binary, octal, decimal and hexadecimal.
  • Type in any base.
  • Very large numbers with BigInt.
  • Upper or lower case hex.
  • Negative number support.

Practical uses

  • Computer science homework and exam practice.
  • Reading hex values in debugging or memory dumps.
  • Working with bit masks and flags.
  • Converting chmod values or network masks.
  • Converting hexadecimal colour components to decimal RGB values.

Example

Decimal 255 is 11111111 in binary, 377 in octal and FF in hexadecimal: the largest value one byte can hold.

Tips and common mistakes

  • Group binary digits in fours to read them as hex digits quickly.
  • Prefixes like 0x and 0b are not needed; type only the digits.
  • Use the Text to Binary converter for text rather than numbers.

Limitations

  • Fractions are not supported, only whole numbers.
  • Two’s-complement representation of negative numbers is not shown.

Privacy

Conversions happen in your browser.

Frequently asked questions

Which digits can I use in hexadecimal?

0–9 and A–F (upper or lower case).

Are negative numbers supported?

Yes, with a leading minus sign. Two’s-complement form is not shown.

Is there a size limit?

No practical limit. BigInt handles numbers with thousands of digits.

Why do programmers use hexadecimal?

Each hex digit represents exactly four bits, so bytes and memory addresses are shorter and easier to read than in binary.

How do I convert binary to decimal by hand?

Multiply each digit by its place value (1, 2, 4, 8, 16 and so on from the right) and add the results. 1011 is 8 + 0 + 2 + 1 = 11.

What is octal used for today?

Mainly Unix file permissions such as 755, and some older systems and file formats.

Related tools

Unit ConverterLength, weight, area, volume and speed.
Temperature ConverterCelsius, Fahrenheit and Kelvin.
Time ConverterSeconds, minutes, hours, days and more.
File Size ConverterBytes, KB, MB, GB, TB — decimal and binary.