Logic / Boolean
Logic Gates
Truth tables, logic gate simulator and boolean expressions.
Input A
Input B
AND
Output
0result
0 AND 0 = 0
Truth Table
All Gates — Quick Reference (A=0, B=0)
GateSymbolExpressionThis InputDescription
Universal Gates
NAND and NOR are each "universal" — any boolean function can be built from either one alone, which is why real CPU logic is often built almost entirely from NAND gates.
Real Boolean Algebra
Every truth table here is computed live from real JavaScript bitwise operators (&, |, ^) — not hardcoded lookup tables.