Free Online Tool

Number Base Converter

Convert between Binary, Decimal, Hexadecimal, Octal & any custom base (2–36) — with step-by-step breakdown, bit visualization, and full conversion history.

Any Base 2–36 Step-by-step Bit Visualization Conversion History
BIN Base‑2 OCT Base‑8 DEC Base‑10 HEX Base‑16 CUSTOM Base‑N

Base Converter

Conversion Result
Decimal → Binary   0b11111111
Decimal255
Digits8
Bits needed8
All Common Bases

Step-by-Step Breakdown

Bit Visualization

1 — Active bit0 — Inactive bit

Conversion History

No conversions yet.

Quick Reference — 0 to 15

Decimal Binary Octal Hex
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F

About Number Base Conversion

What Is a Number Base Converter?

A number base converter (also called a radix converter) translates a number from one numeral system to another. The most common systems in computing are binary (base-2), octal (base-8), decimal (base-10), and hexadecimal (base-16). This tool also supports any custom base from 2 to 36.

Binary (Base-2) Explained

Binary is the foundation of all digital computing. It uses only two digits — 0 and 1 — representing the off/on states of transistors. Every piece of data your computer processes is ultimately stored and transmitted as binary. Converting binary to decimal is one of the most common operations in computer science education.

Hexadecimal (Base-16) Explained

Hexadecimal uses digits 0–9 and letters A–F to represent values 0–15. It's widely used in memory addresses, HTML/CSS color codes (e.g., #FF5733), and machine-level debugging because it compactly represents binary data — every 4 bits equals exactly one hex digit.

Octal (Base-8) Explained

Octal uses digits 0–7. It was historically used in early computing and is still found in Unix/Linux file permissions (e.g., chmod 755). Three binary digits map exactly to one octal digit, making binary-to-octal conversions straightforward and systematic.

Frequently Asked Questions

Multiply each binary digit by its corresponding power of 2 and add the results. For example, 11111111 equals 128+64+32+16+8+4+2+1 = 255.

Repeatedly divide the decimal value by 16, recording each remainder, then read the remainders from bottom to top. This converter provides the complete division breakdown for supported conversions.

The converter uses JavaScript BigInt, so it can handle integers far beyond the normal 64-bit range. Practical limits are mainly determined by browser memory and input length.

Yes. Negative integer values are supported. The sign is preserved while the magnitude is converted to the selected base.

Yes. Select Custom Base and enter any radix from 2 through 36. Digits above 9 use A–Z.