🔢 Binary Calculator & Converter

Binary math calculator — convert between decimal, binary, hex, and octal. Toggle bits visually and perform bitwise operations.

What is Binary Calculator & Converter?

A visual binary math calculator and number system converter that goes far beyond basic conversion. Use it as a calculator for binary, a calculator for hexadecimal, or a binary system calculator. Type in any number format — decimal, binary, hexadecimal, or octal — and see all four update simultaneously in real-time. Toggle between 8, 16, and 32-bit display modes. Click individual bits to flip them and watch every representation update instantly. Perform bitwise operations (AND, OR, XOR, NOT, left shift, right shift) with aligned visual bit displays. Includes a nearby-values conversion table and copy buttons on every output.

How to Use

  1. Type a number in any format (decimal, binary, hex, or octal) and all other formats update live
  2. Use the 8/16/32-bit toggle to change the bit width
  3. Click individual bit squares in the visual editor to toggle them on or off
  4. Use the Binary Operations section to perform AND, OR, XOR, NOT, or shift operations on two numbers
  5. View the nearby values table to see conversions for numbers close to your current value
  6. Hover over any output row and click Copy to copy the value

Frequently Asked Questions

What number formats are supported?

Decimal (base 10), binary (base 2), hexadecimal (base 16), and octal (base 8). Type in any field and all others update automatically.

What do the bit squares represent?

Each square is one bit. Colored squares are 1 (set) and dim squares are 0 (clear). They are grouped in nibbles (4 bits) for readability. Click any square to toggle it.

What bitwise operations are available?

AND, OR, XOR, NOT (unary), left shift (<<), and right shift (>>). Enter two decimal operands and select an operation to see the result in all formats with aligned bit visualizations.

Is my data sent anywhere?

No. All conversions and calculations are performed entirely in your browser. Nothing is sent to any server.

Related Tools

  • 🌐 IP Subnet Calculator — Calculate subnets visually with a CIDR slider, binary bit visualization, and full network details. Copy any re
  • 🔑 Hash Generator — Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from any text instantly using Web Crypto API.
  • 🔐 Base64 Encoder/Decoder — Encode text to Base64 or decode Base64 strings instantly. Swap between modes with one click.
  • {} JSON Formatter — Format, validate, and beautify JSON data instantly. Free online JSON formatter with syntax highlighting and er
  • .* Regex Tester — Test regular expressions with live match highlighting, group capture display, and flag toggles.
  • #️⃣ UUID Generator — Generate random UUIDs (v4) instantly. Choose format, generate in bulk, and copy with one click.

Related: binary calculator, binary converter, decimal to binary, hex to binary, octal converter, bitwise calculator, binary to decimal, binary to hex, binary math calculator, calculator for hexadecimal, online hex calculator