Different operand widths
Shorter operands are zero-padded to the first operand's width.
Fix: Write operands with the same number of bits for predictable output.
header • up to 320x100 / 728x90
Compute AND, OR, XOR, NAND, NOR, XNOR, and NOT of binary values with truth-table style output
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Binary (base 2) is the number system computers use natively, where every value is represented with combinations of 0 and 1.
Logic Gate Calculator performs bitwise logic operations on two binary numbers (or one for NOT). Supported gates: AND, OR, XOR, NAND, NOR, XNOR, and NOT. Results are shown in binary, decimal, and hexadecimal.
It's ideal for digital-logic classrooms, FPGA prototyping, low-level debugging, and quick verification of hardware truth tables.
1101 1011
Gate: AND Binary: 1001 Decimal: 9 Hex: 0x9
Shorter operands are zero-padded to the first operand's width.
Fix: Write operands with the same number of bits for predictable output.
Only 0 and 1 are allowed.
Fix: Strip any spaces or separators before pasting.
AND, OR, XOR, NAND, NOR, XNOR, and NOT.
Select NOT in the gate selector and provide a single binary operand.
Thanks to BigInt, you can work with arbitrarily large binary numbers.
Yes — binary, decimal, and hexadecimal outputs are shown together.
No — the calculator runs entirely in your browser.
Combine the logic gate calculator with number-base and binary helpers for full bit-level workflows. You can also browse the full Developer Calculators category for more options.
Convert binary numbers to decimal
Convert decimal numbers to binary
Convert hexadecimal to binary
Convert binary to hexadecimal
Detect a number in decimal, binary, octal, or hexadecimal form and output every other base side-by-side in one click.
Perform arithmetic operations in binary
Estimate Cash App fees for instant deposits, business payments, and Bitcoin withdrawals
Add or subtract days, weeks, months, years, hours, minutes, or seconds from any date or time
Sum multiple HH:MM time ranges into total hours worked — perfect for weekly timesheets
Calculate adjusted video or audio duration when speeding up or slowing down playback
Convert IELTS band scores to Canadian Language Benchmark (CLB) levels for Express Entry
Perform bitwise OR operation