ToolNest logoToolNest.

Free Number Base Converter

Last updated: 2026-10-09

Quick answer: Convert numbers between binary, octal, decimal, and hexadecimal — or any base from 2 to 36. Type a value once and see it in every common base simultaneously, with input validation so mistyped digits get flagged instead of silently misconverted.

🔒 100% Private: Data never leaves your device.
—Binary
—Octal
—Decimal
—Hexadecimal

✓ Free forever  ·  ✓ No signup  ·  ✓ Tool inputs stay in your browser — never sent to our servers.

Try next: Text to Binary Converter · Base64 Encoder / Decoder · Unix Timestamp Converter

How to Use the Number Base Converter

  1. Type your number and select the base it's written in.
  2. Click Convert — binary, octal, decimal, and hex appear at once.
  3. Invalid digits for the chosen base are flagged immediately.
  4. Copy any result straight into your code.

Why Use Our Number Base Converter?

Common Use Cases

Number Base Converter vs Alternatives

If you're already in a Python REPL, int(x, 16) is unbeatable. For quick checks in the browser — homework, chmod, color codes — this page converts once and shows every base at once, free.

Frequently Asked Questions

What is hexadecimal used for?
Colors (#FF5733), memory addresses, and byte values — base-16 packs 4 bits per digit, so it's compact and readable.
How do I convert binary to decimal by hand?
Sum the place values of each 1 bit: 1011 = 8+0+2+1 = 11.
Why do programmers use octal?
Mostly Unix file permissions (chmod 755) — each octal digit maps to 3 permission bits.
What bases are supported?
2 through 36 (digits 0–9 plus letters A–Z).
How do you convert hexadecimal to decimal by hand?
Multiply each digit by its place value (16ⁿ) and add, working right to left from 16⁰ = 1. Letters A–F count as 10–15: 0x2F = 2×16 + 15 = 47. Try it above, then check with the converter.
What's the fastest way to convert binary to hexadecimal?
Group the binary digits in fours from the right, then swap each group for its hex digit: 11110010 → F2. One hex digit is exactly 4 bits, so there's no division involved — it's the trick every CS student learns in week one.
Why is FF equal to 255?
Each hex digit holds 4 bits, so FF is two maxed-out digits: 15×16 + 15 = 255 — the largest value a single byte can hold. That's why 255 shows up everywhere in computing: RGB white is #FFFFFF (three maxed bytes), and subnet masks are built from 255s.
How do I convert decimal to binary without a calculator?
Divide by 2 repeatedly and read the remainders bottom-to-top: 13 → 6 r1 → 3 r0 → 1 r1 → 0 r1 → 1101. It's the reverse of the 'sum the place values' trick for going binary-to-decimal.
Is Base64 a number base?
No — despite the name, Base64 is a binary-to-text encoding, not a positional number system. It maps 3 bytes to 4 ASCII characters so binary survives text-only channels. For actual encoding work, use our Base64 encoder.
Do programmers still use octal?
In one place, constantly: Unix file permissions. chmod 755 is three octal digits — owner, group, others — each digit mapping to 3 permission bits (read=4, write=2, execute=1). Everywhere else, hex won.
Is it free?
Yes — free forever, no signup.