Number Base Converter

Convert between binary, octal, decimal & hex.

Any base (2–36)

Result

Free online number base converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly with this browser-based base converter. Type a value into any field and the other three update live, so you can go from binary to decimal, decimal to hex, hex to binary, or any combination without doing the math by hand. It's built for programmers debugging bit patterns, students learning number systems, and anyone who needs a quick, reliable conversion. A separate Any base panel handles unusual radixes from base 2 all the way up to base 36.

How to convert between number bases

  1. Pick the field that matches the base your number is already written in — Binary, Octal, Decimal, or Hexadecimal.
  2. Type or paste your number. Only valid digits for that base are accepted.
  3. Read the equivalent value instantly from the other three fields.
  4. For other radixes, use the Any base panel: enter the value, set the from-base and to-base (2–36), and read the result.
  5. Click Copy next to any value to send it to your clipboard.

Where base conversion is used

Hexadecimal shows up everywhere in computing — HTML color codes, memory addresses, and byte values are all written in hex. Binary is the raw language of hardware and bitmasks, while octal still appears in Unix file permissions. If you work with hex colors a lot, pair this with our color converter, and when you're encoding binary data for transport, the Base64 encoder is a natural next step.

Private and instant

Every conversion runs entirely in your browser using standard parseInt and toString math — nothing is uploaded or stored. There's no sign-up and no limit, so bookmark this page for the next time you need to switch between bases in a hurry.

Frequently asked questions

How does the number base converter work?

Type a number into any of the four fields — binary, octal, decimal, or hexadecimal — and the other three update instantly. Your entry is parsed in its own base, converted to a decimal value, and then re-encoded into every other base right in your browser. Nothing is sent to a server.

What is the difference between binary, octal, decimal, and hexadecimal?

They are just different ways of writing the same number. Decimal (base 10) uses digits 0–9. Binary (base 2) uses only 0 and 1 and is how computers store data. Octal (base 8) uses 0–7. Hexadecimal (base 16) uses 0–9 and a–f, and is popular for colors, memory addresses, and byte values because it is compact.

How do I convert binary to decimal or decimal to hex?

To convert binary to decimal, type your 0s and 1s into the Binary field and read the Decimal field. To convert decimal to hex, type your number into the Decimal field and read the Hexadecimal field. Every field is two-way, so any input updates all the others at once.

What is the "Any base" converter for?

The Any base section lets you convert between any pair of bases from 2 to 36 — for example base 3 to base 7, or base 36 to base 10. Enter your value, choose the base it is written in, and choose the base you want, and the result appears immediately.

Why does a very large number look wrong?

Conversions use JavaScript numbers, which are exact only up to 9,007,199,254,740,991 (about 2⁵³). Numbers larger than that can lose precision during conversion, so treat results for extremely large inputs as approximate.

Is my data private?

Yes. All parsing and conversion happens locally in your browser with JavaScript. No numbers are uploaded, logged, or stored, so the tool is safe for sensitive values.