Every function of the binary converter
Real-time multi-base conversion
The converter simultaneously displays the number in binary, octal, decimal, hexadecimal and any custom base between 2 and 62 — with the configurable alphabet (digits, uppercase then lowercase letters). Input accepts 0b (binary), 0o (octal) and 0x (hexadecimal) prefixes, with automatic base detection. The result updates on every keystroke, with no “Convert” button.
Signed and unsigned numbers
The same bit pattern can be read three ways: unsigned (0 to 2ⁿ−1), signed in two's complement (−2ⁿ⁻¹ to 2ⁿ⁻¹−1), signed in sign and magnitude or in one's complement. The converter shows all four interpretations at once, avoiding classic overflow and sign errors. Size is configurable from 4 to 1024 bits, or custom beyond.
Two's complement step by step
The dedicated tab shows the full demonstration: writing the absolute value in binary over n bits, flipping every bit, then adding 1. For a positive number, the first bit is simply the sign. On 8 bits, −5 thus becomes 11111011. This representation, used by every processor, makes addition and subtraction identical.
Clickable bit visualizer
Each bit shows its weight (2⁰, 2¹, 2²…) and its value. A click toggles the bit and every conversion is recalculated instantly: it is the simplest way to understand the value of a byte, build a mask or break an IP address down into binary.
Binary calculator and bitwise operations
Addition, subtraction, multiplication, integer division and modulo run in arbitrary precision. Bitwise operations — AND (&), OR (|), XOR (^), left shift (<<) and right shift (>>) — respect the chosen size (8, 16, 32, 64 bits…) and signed or unsigned interpretation. The result is shown in every base with the matching bit pattern.
Text to binary
Convert text, a file or a URL to binary, hexadecimal, octal and decimal byte codes, with the per-character table (code, binary, hex). Supported encodings: UTF-8, ASCII, Latin-1 (ISO-8859-1), Windows-1252 and UTF-16. Reverse decoding accepts a binary, hexadecimal or octal sequence, with or without spaces.
Interactive conversion table
Browse values from 0 to 255 (and beyond) with their decimal, hexadecimal, binary, octal representations and their character. The search field filters instantly and a click on a row loads the value into the converter — ideal for learning ASCII and powers of two.
Hexadecimal and colors
Type a #RRGGBB color: the tool computes RGB, HSL and CMYK, shows the preview and the complementary color, and converts the hexadecimal value to binary, octal and decimal in one go.
Bytes and data units
Convert bits, bytes, kilo/mega/giga/terabytes and their binary equivalents (KiB, MiB, GiB, TiB) while respecting both conventions: the International System (1 KB = 1000 bytes) and the IEC system (1 KiB = 1024 bytes).
Unix permissions (chmod)
Translate a chmod code (755, 644…) into rwxr-xr-x symbolic notation, into binary per class (owner, group, others) and back. The values 4=read, 2=write, 1=execute are broken down and explained.
History, sharing and export
Every conversion is saved locally: reload it with one click or clear the list. Share a value by URL (?v=base:value) and export results to TXT, CSV, JSON or Markdown. Command palette (Ctrl+K) to move between the nine modes.
How to convert binary to decimal
Each bit of a binary number matches a power of two: the rightmost bit is worth 2⁰ = 1, the next 2¹ = 2, then 2² = 4, 2³ = 8, etc. To convert 1010: 1×8 + 0×4 + 1×2 + 0×1 = 8 + 2 = 10. In general, you only add the weights of the bits that are 1.
Reverse link: 11111111 (eight 1 bits) = 255, the maximum value of an unsigned byte, i.e. 2⁸ − 1. Useful powers of two to remember: 2¹⁰ = 1024 (binary kilo), 2²⁰ = 1048576 (binary mega), 2³⁰ ≈ 1 billion (binary giga).
How to convert a decimal number to binary
The successive division method: divide the number by 2 and note the remainder (0 or 1). Repeat with the quotient until you reach 0, then read the remainders from bottom to top.
Example for 13: 13 ÷ 2 = 6 remainder 1; 6 ÷ 2 = 3 remainder 0; 3 ÷ 2 = 1 remainder 1; 1 ÷ 2 = 0 remainder 1 → reading back: 1101. Check: 8 + 4 + 0 + 1 = 13.
Reference table of powers of two
Useful for mental conversion: 2⁰=1, 2¹=2, 2²=4, 2³=8, 2⁴=16, 2⁵=32, 2⁶=64, 2⁷=128, 2⁸=256, 2⁹=512, 2¹⁰=1024, 2¹¹=2048, 2¹²=4096, 2¹³=8192, 2¹⁴=16384, 2¹⁵=32768, 2¹⁶=65536. Each byte in binary uses exactly 8 bits: 00000000 to 11111111.
Recommended for
Computer-science students and teachers (learning number bases, ASCII, two's complement), developers (bitwise masks, flags, protocols, hex debugging), system administrators (chmod permissions, mask resolution), and anyone who wants a binary converter online that is fast, reliable and private.