Binary to Decimal
Convert binary to decimal and back — with hex, octal and binary-to-text modes, all updating live as you type.
Last updated
How to use binary to decimal
- Choose a conversion mode from the dropdown — Binary → Decimal is selected by default.
- Type or paste your value into the Input box; the Output updates live as you type.
- In binary modes you may group bits with spaces every 4 or 8 digits — they are ignored.
- Read the answer in the Output box; binary results are grouped in 4-bit nibbles for readability.
- Click Copy output to copy the result to your clipboard.
Examples
Convert 10101 binary to decimal
Reading the bit positions — 16 + 4 + 1 — gives 21.
Convert 255 to binary
255 is 1111 1111 — eight 1s, the largest value a single byte can hold.
Decode binary text
Read as 8-bit bytes, 01001000 01101001 decodes to "Hi" — binary to text in one step.
Convert hex FF to binary
Each hex digit is four bits, so FF becomes 1111 1111.
What is Binary to Decimal?
Binary is the language underneath every digital device: just two symbols, 0 and 1, where each position is worth a power of two. The rightmost bit is worth 1, the next 2, then 4, 8, 16 and so on — so 10101 is 16 + 4 + 1 = 21. Every photo, message and file on your machine is, at bottom, a long run of these bits, almost always grouped into bytes of eight.
Computer science students meet binary in the first week; programmers meet it weekly in hex dumps, permission bits, color codes and bit masks. Hexadecimal is binary’s shorthand — each hex digit stands for exactly four bits, which is why pure red #FF0000 is 11111111 00000000 00000000 underneath and memory addresses are written in hex. Octal survives in Unix file permissions (777 is owner, group and others can each read, write and execute) and in C-style numeric literals.
This binary to decimal converter covers the conversions people actually reach for: binary ↔ decimal, binary ↔ hex, decimal ↔ octal, and binary ↔ text, where every 8 bits decode as one UTF-8 character — handy when someone calls it an ascii to binary translator. Pick a mode, paste your value — spaces every 4 or 8 bits are fine — and the answer appears as you type, binary results grouped in readable 4-bit nibbles. All the math happens in your browser; nothing you paste is sent anywhere.
Frequently asked questions
How do you convert binary to decimal?
Multiply each bit by its positional value — a power of two, starting at 1 on the right and doubling each step left — and add the results. For 10101 that is (1×16) + (0×8) + (1×4) + (0×2) + (1×1) = 21.
How do you convert 10101 binary to decimal?
Work left to right: 16 + 0 + 4 + 0 + 1 = 21. The 1s sit on the 16, 4 and 1 positions, and the 0s contribute nothing.
What is 0010 in binary?
2. Leading zeros never change a binary value — 0010, 010 and 10 are all the same number: one 2 and no 1s.
Can this tool work as a binary translator or binary to text converter?
Yes. The Binary → Text mode treats every 8 bits as one byte and decodes the bytes as UTF-8, and Text → Binary does the reverse (which is why it also answers "ascii to binary"). Try 01001000 01101001 to see "Hi".
How do I convert binary to octal?
Group the bits in threes from the right and read each group as one octal digit (000–111 = 0–7), or use this tool as a stepping stone: convert binary → decimal, then decimal → octal. Octal → Decimal is also built in.
What is the largest number this converter accepts?
9007199254740991 (2^53 − 1), the largest integer JavaScript can represent exactly. Beyond that point every digital calculator silently rounds, so the converter says so instead of guessing.
Related tools
- Roman Numerals Converter
Convert numbers to Roman numerals and back, live as you type, with a chart from 1 to 100.
- Base64 Encode/Decode
Quickly encode text to Base64 and decode Base64 back to readable text.
- Celsius to Fahrenheit Converter
Quickly convert Celsius to Fahrenheit and Fahrenheit to Celsius.
- CM to Inches Converter
Convert centimeters to inches and inches to centimeters instantly.
- Color Picker
Pick a color and copy it as HEX, RGB or HSL — with eyedropper and image sampling.
- Feet to Meters Converter
Convert feet to meters and meters to feet instantly.
Browse all converters.