Number System Converter

Convert a whole number between binary, octal, decimal and hexadecimal — all four results at once.

Your privacy: this tool works entirely in your browser. Nothing you enter is uploaded to a server.

How to convert a number system

  1. Type a whole number in the box.
  2. Choose the base it is written in — binary, octal, decimal or hexadecimal.
  3. Read all four results — the same value in every base, updated instantly.

Number systems explained

Everyday counting is decimal — base 10, using digits 0 to 9. Computers work in binary — base 2, using only 0 and 1 — because a switch can be off or on. Octal (base 8, digits 0–7) and hexadecimal (base 16, digits 0–9 plus letters A–F for ten to fifteen) are compact ways for people to write binary values: one hex digit is exactly four binary digits, so long binary numbers become short hex strings.

You will meet hex in colour codes (#E86A17 is a colour written in hex), memory addresses and error codes, and binary and octal in computing courses and file permissions. The place-value idea is the same in every base: in decimal, 255 means 2×100 + 5×10 + 5; in binary, 11111111 means the eight place values 128+64+32+16+8+4+2+1, which is also 255.

This converter works with whole numbers (integers) only, and it checks your input against the base you pick — a binary input containing a 2 is flagged instead of silently producing a wrong answer.

Number System Converter — common questions

What digits can each base use?

Binary: 0–1. Octal: 0–7. Decimal: 0–9. Hexadecimal: 0–9 and A–F.

What is 255 in binary and hex?

255 is 11111111 in binary and FF in hexadecimal.

Why do programmers use hexadecimal?

One hex digit stands for exactly four binary digits, so hex is a short, readable way to write values a computer stores in binary.

Can I convert fractions or negative numbers?

Not on this page — it converts whole numbers only, which covers the great majority of everyday base conversions.

Is anything I enter uploaded?

No. The conversion runs entirely in your browser.