Skip to content
Utilities & CalculatorsLocal · Stays on device

Binary Calculator

Add, subtract, multiply, divide, AND, OR, XOR, NOT and shift binary, hex, octal or decimal numbers at 8 to 64 bits, signed or unsigned.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
binary-calculatorOn this device

About this tool

Enter two numbers in binary, hexadecimal, octal or decimal and choose an operation: arithmetic (add, subtract, multiply, integer divide, remainder), bitwise logic (AND, OR, XOR, NAND, NOR, NOT) or shifts (left, logical right, arithmetic right). Choose 8, 16, 32 or 64 bits and signed (two’s complement) or unsigned. The result is shown in all four bases, with the bits grouped in fours.

Overflow is never hidden: if the exact answer doesn’t fit the chosen width, you see the exact value and the wrapped result a processor would produce. Division rounds toward zero, as in most programming languages. Everything is calculated in your browser; nothing you enter is sent anywhere.

  1. Input

    Your details

    The values you type in

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Shown instantly, ready to copy or export

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Choose the input format, bit width and signedness.

  2. 2

    Enter A, pick an operation and enter B (or the shift amount).

  3. 3

    Read the result in binary, hex, decimal and octal.

Zero-upload architecture

How to use Binary Calculator for free, with no upload

Free, with no sign-up or watermark · Your details stay on your device

  1. 1

    Open Binary Calculator

    Launch the app. There is nothing to install and no account to create.

  2. 2

    Work through it

    Enter A, pick an operation and enter B (or the shift amount).

  3. 3

    Get your result

    Read the result in binary, hex, decimal and octal.

  • Local

    Base Conversion Calculator

    Convert whole numbers and fractions between any bases from 2 to 36, with repeating digits and two’s-complement views.

    Open tool
  • Local

    Scientific Calculator

    A full scientific calculator with trig in degrees or radians, logs, powers, roots, factorials, memory and history.

    Open tool
  • Local

    Bash Quoting Helper

    Quote any text safely for bash (single, double, $'…' or minimal) and see how bash splits and expands a command line.

    Open tool
  • Local

    EMI Calculator

    Calculate loan EMI, total interest and a full amortisation schedule, with optional prepayments.

    Open tool