๐Ÿ”ง Logic Gate Truth Table Generator

ABOutput
000
010
100
111

Select a logic gate (AND, OR, XOR, NAND, NOR, XNOR, NOT) to display its standard truth table. Useful for studying or checking boolean logic in digital circuits and programming.

How to use

  1. Select the logic gate you want to check.
  2. The truth table showing output for each combination of inputs (A, B) is displayed.

FAQ

Why does NOT look different from the other gates?

NOT is a unary gate with only one input, so its truth table only has an A column, unlike the other 2-input gates.

Whatโ€™s the difference between XOR and XNOR?

XOR outputs 1 (true) when the inputs differ, while XNOR outputs 1 (true) when the inputs match โ€” theyโ€™re logical negations of each other.

What are NAND and NOR used for?

NAND and NOR are each known as "universal gates" because any boolean function can be built from just one of them, which is why theyโ€™re common in real digital circuit design.