Tools

Home
Percentage CalcUnit ConverterBMI CalculatorCalculatorTip Calculator

Base Converter

Convert numbers between binary, octal, decimal, hexadecimal, and any custom base (2-36)

Your files never leave your browser

Results

Binary (Base 2)
Enter a number above
Octal (Base 8)
Enter a number above
Decimal (Base 10)
Enter a number above
Hexadecimal (Base 16)
Enter a number above
Ready·Enter a number to convert

Convert any number between binary, octal, decimal, hex, or a custom base up to 36 — type it in, pick the source base, and get every result at once. No more hand-calculating positional powers or second-guessing remainders. And everything runs in your browser. Nothing gets uploaded.

How It Works

Enter Number + Base
→
Parse to Decimal
→
Convert to All Bases

Your input gets parsed digit by digit — each one multiplied by its positional power of the source base, then summed into a decimal value. From there, the tool divides repeatedly by each target base, collecting remainders to build the output. For bases above 10, digits beyond 9 map to letters (A=10, B=11, up to Z=35).

Examples

IP Address Octet to Binary

Subnetting a network and you need the binary form of 192.

INPUT
192 (base 10)
OUTPUT
Binary: 11000000 Hex: C0 Octal: 300

CSS Hex Color to RGB Values

You've got hex color FF5733 and want to know what each channel looks like in decimal. Split it into FF, 57, and 33, then convert each.

INPUT
FF (base 16) 57 (base 16) 33 (base 16)
OUTPUT
FF → 255 57 → 87 33 → 51 RGB(255, 87, 51)

Unix File Permissions

chmod 755 — but what does each digit actually mean in binary?

INPUT
7 (base 8) → owner 5 (base 8) → group 5 (base 8) → others
OUTPUT
7 → 111 (rwx) 5 → 101 (r-x) 5 → 101 (r-x)

Who Uses This

👨‍💻 Developers

Converting hex memory addresses and debugging binary flags in register values.

🎨 Web Designers

Breaking hex color codes into decimal RGB channels for CSS functions.

🎓 CS Students

Checking homework answers when converting between binary, octal, and hex by hand.

🔧 Network Engineers

Working out subnet masks and IP ranges that require binary breakdowns.

Common Mistakes

Using invalid digits for the chosen base

Typing "92" while the source base is set to octal. Octal only uses 0–7, so the 9 is invalid. Double-check your base selection before you type.

Confusing 0x prefix with the actual value

Pasting "0xFF" when the tool expects just "FF." The 0x prefix is programming notation, not part of the number itself. Strip it before converting.

Forgetting that hex letters are case-insensitive

Some people worry that "ff" and "FF" give different results. They don't. Both equal 255 in decimal. This tool accepts either case without any issues.

Technical Details

Frequently Asked Questions

What is a number base or radix?

A base (also called radix) is just how many unique digits a number system uses. Decimal has 10 digits (0–9). Binary has two (0 and 1). Hexadecimal gets 16 by adding A through F on top of the usual 0–9.

How do I convert binary to decimal by hand?

Write out the binary number, then assign powers of 2 from right to left starting at 2⁰. Multiply each bit by its power and add them up. So 1011 becomes 1×8 + 0×4 + 1×2 + 1×1 = 11.

Why do programmers use hexadecimal?

Each hex digit maps to exactly 4 binary bits, so it's a clean shorthand. Writing FF is a lot easier to read than 11111111. That's why you'll see hex everywhere — color codes, memory addresses, MAC addresses, byte-level debugging.

What is base 36 used for?

Base 36 packs the most information into the fewest characters using only alphanumeric digits (0–9, A–Z). URL shorteners, YouTube video IDs, and compact database keys all rely on it. It is the highest base you can build with just letters and numbers.

Is my data safe when using this converter?

Yes. The conversion runs entirely in your browser using JavaScript. No data gets sent to any server — you can even disconnect from the internet and the tool keeps working. Nothing is logged or stored.

Share: