Base Conversion Calculator
Convert whole numbers and fractions between any bases from 2 to 36, with repeating digits and two’s-complement views.
Open toolAdd, subtract, multiply, divide, AND, OR, XOR, NOT and shift binary, hex, octal or decimal numbers at 8 to 64 bits, signed or unsigned.
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.
Your details
The values you type in
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Shown instantly, ready to copy or export
Choose the input format, bit width and signedness.
Enter A, pick an operation and enter B (or the shift amount).
Read the result in binary, hex, decimal and octal.
Zero-upload architecture
Free, with no sign-up or watermark · Your details stay on your device
Launch the app. There is nothing to install and no account to create.
Enter A, pick an operation and enter B (or the shift amount).
Read the result in binary, hex, decimal and octal.
Convert whole numbers and fractions between any bases from 2 to 36, with repeating digits and two’s-complement views.
Open toolA full scientific calculator with trig in degrees or radians, logs, powers, roots, factorials, memory and history.
Open toolQuote any text safely for bash (single, double, $'…' or minimal) and see how bash splits and expands a command line.
Open toolCalculate loan EMI, total interest and a full amortisation schedule, with optional prepayments.
Open tool