Truth Table Generator
Generate a complete truth table for any logical expression using AND, OR, NOT, XOR.
Operators: AND, OR, NOT, XOR, NAND, NOR, XNOR — or symbols: &&, ||, !, ^
| A | B | C | Result |
|---|---|---|---|
| F | F | F | T |
| F | F | T | F |
| F | T | F | T |
| F | T | T | F |
| T | F | F | T |
| T | F | T | F |
| T | T | F | T |
| T | T | T | T |
8 rows for 3 variables: A, B, C
About Truth Table Generator
Instantly generate complete truth tables for any Boolean (logical) expression. Enter your formula using variables like A, B, C and combine them with AND, OR, NOT, XOR, NAND, NOR, or XNOR — or shorthand symbols like &&, ||, and !. The generator automatically identifies all unique variables, enumerates every possible combination of true/false inputs (2^n rows), evaluates the expression for each row, and highlights the result in green for true or red for false. Toggle between T/F and 1/0 notation to match your textbook or tooling. Ideal for digital logic design, discrete mathematics coursework, and verifying Boolean identities such as De Morgan's laws.
Private & free — this tool runs entirely in your browser.