Number Base Converter - Small Study Tools
Binary · Decimal · Octal · Hex · Any Base 2–36

Number Base Converter

Convert numbers instantly between binary, decimal, octal, hexadecimal and any base from 2 to 36. Pro Mode adds fractional conversion, bitwise operations, step-by-step working and a live custom-base slider.

Pro Version is Free for now
Pro Mode active — fractional conversion, bitwise ops, step-by-step working & custom base slider unlocked
Type a number and pick its base — every other base updates instantly
Privacy Guaranteed — All conversions run in your browser. Nothing is sent to any server.
Quick samples:
⚠ Invalid digit for this base
🎛️ Custom Base Converter — drag to any base from 2 to 36
Base 20
📝 Step-by-Step Working (Decimal → Binary, Division Method)
🔢 Fractional Number Conversion
Enter a decimal number with a fractional part above
⚙️ Bitwise Operations (Two Numbers)
Result: —
Export results

Number Base Converter — Binary, Decimal, Octal, Hex and Beyond

Every number system you'll encounter in computing and mathematics — binary, decimal, octal, hexadecimal, and dozens of less common bases — represents exactly the same underlying quantities, just using a different number of digit symbols. Our free number base converter handles the conversion instantly: type a number in any base from 2 to 36, and see it represented in every other base simultaneously, with no manual calculation required.

Simple Mode covers the four bases used in virtually all real-world contexts — binary, octal, decimal and hexadecimal — updating live as you type, with clear error messages for invalid digits. Switch to Pro Mode (free) for a live custom-base slider covering any base from 2 to 36, full step-by-step working showing exactly how the conversion happens, fractional number conversion, bitwise operations, and a complete CSV export across every base.

Why "base" matters more than most people realise: the number 100 means something completely different depending on its base — it's one hundred in decimal, but only four in base 5, and 256 in hexadecimal. A "base" is simply how many distinct digit symbols a number system uses before it carries over into the next column. Base 10 (decimal) uses ten symbols (0-9) because humans evolved with ten fingers; base 2 (binary) uses only two symbols (0,1) because it maps directly onto the on/off states of a digital circuit.

Decimal to Binary — Worked Example

Converting 13 (decimal) to binary using the division method
1
Divide by 2, record the remainder
13 ÷ 2 = 6 remainder 1
2
Repeat with the quotient
6 ÷ 2 = 3 remainder 0
3
Keep dividing until you reach 0
3 ÷ 2 = 1 remainder 1 → 1 ÷ 2 = 0 remainder 1
4
Read remainders bottom to top
1101 — so 13 (decimal) = 1101 (binary)

Quick Reference — Common Number Conversions

← Scroll →
DecimalBinaryOctalHexadecimal
10101012A
16100002010
100110010014464
25511111111377FF
1000111110100017503E8

Why Hexadecimal Dominates in Computing

Binary is how computers fundamentally store and process data, but raw binary is extremely difficult for humans to read and write — a single byte of data is 8 characters long, and meaningful data quickly becomes an unreadable wall of 0s and 1s. Hexadecimal solves this elegantly: because 16 is a power of 2 (2⁴), each single hex digit maps exactly onto 4 binary bits. A full byte, therefore, is always exactly 2 hex digits — making hex dramatically more compact and readable while remaining trivially convertible back to binary at any time. This is why hexadecimal appears throughout programming: memory addresses, colour codes (#FF5733), MAC addresses, and low-level debugging output.

Where Number Base Conversion Is Used

💻
Computer Science Courses
Number systems and base conversion are foundational topics in introductory computer science, digital logic and computer architecture modules worldwide.
🎨
Web & Design Colour Codes
CSS hex colour codes like #1A7FC1 are hexadecimal representations of red, green and blue values — understanding the conversion helps when fine-tuning colours manually.
🔧
Low-Level Programming & Debugging
Memory addresses, register values and error codes are routinely displayed in hexadecimal, requiring quick mental or tool-assisted conversion to decimal.
🌐
Networking
IP addresses, subnet masks and MAC addresses frequently require conversion between decimal, binary and hexadecimal representations for configuration and troubleshooting.
🧮
Competitive Programming & Interviews
Base conversion and bitwise manipulation are common technical interview topics, testing fundamental understanding of how computers represent numbers.
🔐
Cryptography & Encoding
Many encoding schemes and basic cryptographic algorithms rely on bitwise operations and base conversions as foundational building blocks.

Pro Mode — Four Advanced Features

🎛️
Custom Base Slider
Drag a slider to instantly convert your number into any base from 2 to 36 — useful for exploring unusual bases beyond the standard four.
📝
Step-by-Step Working
See the full division-remainder method laid out step by step for converting decimal to binary — ideal for checking homework or understanding the process, not just the answer.
🔢
Fractional Conversion
Convert decimal numbers with a fractional part (like 10.625) into binary, octal or hex, handling the whole and fractional parts correctly using the multiplication method.
⚙️
Bitwise Operations
Compute AND, OR, XOR, NOT, left-shift and right-shift between two numbers, with the result shown in decimal, binary and hexadecimal simultaneously.

How to Use the Number Base Converter

1
Enter your numberType the number you want to convert, or click one of the quick sample buttons to try the tool immediately with common examples.
2
Select the base it's currently inChoose whether your number is in binary, octal, decimal, hexadecimal or base 36 from the dropdown — the tool validates that every digit is legal for that base.
3
Read all four common bases instantlyBinary, octal, decimal and hexadecimal results all appear simultaneously, each with a one-click copy button for pasting elsewhere.
4
Explore Pro Mode for deeper analysisSwitch to Pro Mode to see step-by-step working, convert to any custom base, handle fractional numbers, or run bitwise operations between two values.

For more number and encoding tools, use this converter alongside our Binary to Text Converter for ASCII character encoding, our Hex to Text Converter for hexadecimal text decoding, our Scientific Calculator for broader mathematical operations, and our Base64 Encoder and Decoder for a different, non-positional encoding scheme.


Frequently Asked Questions

Number bases, conversion methods and how this tool works

Repeatedly divide by 2 and record each remainder, then read the remainders bottom to top. Example: 13 → 13÷2=6 r1, 6÷2=3 r0, 3÷2=1 r1, 1÷2=0 r1 → reading bottom-up gives 1101.

Multiply each digit by 2 raised to its position (from 0 on the right) and sum the results. Example: 1101 = (1×2³)+(1×2²)+(0×2¹)+(1×2⁰) = 8+4+0+1 = 13.

Multiply each hex digit by 16 raised to its position and sum. A-F represent 10-15. Example: hex FF = (15×16¹)+(15×16⁰) = 240+15 = 255.

Base 36 is the practical limit for standard tools, using all 10 digits plus all 26 letters (A-Z). Beyond that requires extra symbols, so it's rarely used. Base64 encoding is a different, non-positional scheme.

Because 1 hex digit = exactly 4 binary bits (a nibble), so a full byte is always 2 hex digits. This makes hex far more compact and readable than long binary strings, while staying trivial to convert back.

Operations that act directly on individual bits: AND, OR, XOR, NOT, and bit shifts. Fundamental in programming for flag manipulation, encryption, graphics, and low-level optimisation — commonly taught in CS fundamentals courses.

Convert the whole part normally. For the fractional part, repeatedly multiply by 2 and record whether the result is ≥1 (write 1, subtract 1) or <1 (write 0). Example: 10.625 → whole=1010, fraction=101 → 1010.101.

Pro Mode (free) adds a custom base slider (2-36), full step-by-step working, fractional conversion for decimal-point numbers, bitwise operations between two numbers, and a complete CSV export across every base.

Lilly
Here to help you find a tool
Search tools Search blogs
Try me to find a tool! 👋