How to Use binary-to-decimal
- Type or paste your binary number (e.g.
11001101) into the input field.
- The decimal, hexadecimal, and octal equivalents appear instantly.
- Switch the direction — enter a decimal, hex, or octal number to see all conversions.
- Copy any output value with a single click.
Binary, decimal, hexadecimal, and octal are four numeral systems representing the same underlying values with different bases: 2, 10, 16, and 8. Programmers and engineers constantly switch between them — reading CPU flags, writing bitmasks, debugging memory dumps, and working with colour codes. This converter handles all four directions simultaneously.
Number Bases in Practice
Binary (base-2) is how CPUs actually store data — every register value and memory address is a sequence of 0s and 1s. Hexadecimal (base-16) is a compact shorthand: one hex digit represents exactly 4 binary bits, making hex ideal for reading memory dumps, colour codes (#FF8800), and byte-level flags. Octal (base-8) was common in older Unix file permissions (chmod 755) and still appears in some embedded systems. Decimal is human-readable but the least useful for low-level work.
- Converts between binary, decimal, hexadecimal, and octal simultaneously
- Handles large integers (up to 64-bit range)
- Accepts prefixed input:
0x for hex, 0b for binary, 0o for octal
- Bit count and byte count displayed for binary inputs
Frequently Asked Questions
How do I convert binary to decimal by hand?
Write the binary number and, starting from the right, multiply each bit by 2 raised to its position: 1101 = (1×8) + (1×4) + (0×2) + (1×1) = 13.
Why is hexadecimal so common in programming?
Every hex digit maps to exactly 4 binary bits. The byte value 255 is 11111111 in binary and FF in hex — 2 characters instead of 8. Hex makes binary data much more readable without losing precision.
What does chmod 755 mean in binary?
755 in octal is 111 101 101 in binary — three 3-bit groups for owner, group, and other. Bit pattern 111 = rwx (all permissions), 101 = r-x (read + execute, no write).
Is there a limit on the size of numbers this tool handles?
The tool uses JavaScript's BigInt for large number support, handling integers well beyond 32-bit and 64-bit ranges without overflow.
See also Hex to Binary, Binary to Text, and the Bitwise Calculator for bit manipulation.