Binary/Hex/Decimal Converter

Convert numbers between binary, hexadecimal, and decimal systems.

Calculators

Number Base Converter: Convert Binary, Hexadecimal, Octal, & Decimal Instantly

You are programming a micro-controller, inspecting memory registers in a low-level debugger, configuring Unix file permissions (chmod 755), or debugging network packets. Instead of standard base-10 decimal numbers, you are surrounded by binary bits (11010110) and hexadecimal memory addresses (0x7FFE).

Humans naturally count in base 10 because we have ten fingers. But digital transistors and silicon microchips only have two states: voltage high (1) or voltage low (0). Bridging human decimal numbers and machine binary structures requires converting across different numerical bases.

Our free Number Base Converter transforms values across Binary (Base 2), Octal (Base 8), Decimal (Base 10), Hexadecimal (Base 16), and arbitrary bases up to Base 36 in real time. Inspect bitwise representations, review step-by-step mathematical remainders, and copy formatted strings in seconds.

The Four Core Number Systems in Computing

Binary (Base 2)

Symbols: 0, 1

The native language of computer hardware. Each digit represents a power of two (1, 2, 4, 8, 16, 32...). Used in bitwise flags, network subnetting, and logic gates.

Octal (Base 8)

Symbols: 0 through 7

Each octal digit maps cleanly to exactly 3 binary bits (2³ = 8). Famous for Unix/Linux file permissions (chmod 777 = read, write, execute for all).

Decimal (Base 10)

Symbols: 0 through 9

The universal human counting system. Each position represents increasing powers of ten (units, tens, hundreds, thousands).

Hexadecimal (Base 16)

Symbols: 0–9 and A–F

The standard for human programmers reading raw bytes. Each hex character represents exactly 4 binary bits (one "nibble"), so two hex digits make one byte (00 to FF).

Why Programmers Love Hexadecimal: The 4-Bit Nibble Rule

Looking at a 32-bit binary memory string like 11011111101001011000000111100010 makes anyone dizzy.

Because 16 is an exact power of 2 (2⁴ = 16), every cluster of four binary bits corresponds to a single hexadecimal digit. You can convert binary to hex in your head simply by grouping into fours:

Binary: 1101   1111   1010   0101

Hex:     D       F       A       5  → 0xDFA5

This 4-to-1 relationship is why hex is universally chosen for CSS color codes (#FFA500), MAC addresses, IPv6 addresses, and assembly memory offsets.

How Step-by-Step Base Conversion Works

Decimal to Any Base (Repeated Division)

Divide the decimal number by the target base (e.g. 2 or 16), record the remainder, and repeat with the quotient until reaching zero. Read remainders bottom-to-top.

25 ÷ 2 = 12 (rem 1) → 12 ÷ 2 = 6 (rem 0)...

Any Base to Decimal (Polynomial Sum)

Multiply each digit by the base raised to its zero-indexed position power from right to left, then sum the results.

1101₂ = (1×2³) + (1×2²) + (0×2¹) + (1×2⁰) = 13

Frequently Asked Questions

What does the "0x" prefix mean in numbers?

The 0x prefix indicates that the following number is written in hexadecimal notation (e.g., 0xFF = 255). Similarly, 0b indicates binary (0b1010 = 10) and 0o represents octal.

Can this tool handle fractional or negative numbers?

Yes. Our converter accurately handles negative signs and fractional radix points (e.g. converting 101.101 binary to decimal 5.625).

What is Base 36 used for?

Base 36 uses digits 0-9 and all 26 English alphabet letters (A-Z). It is widely used by URL shorteners (like Bitly), database unique ID generators, and YouTube video IDs to represent massive numbers in ultra-compact strings.