Truth Table Generator
Enter a Boolean expression using variables A–D and operators, and get a full truth table with all possible input combinations.
Boolean Expression
Variables: A B C D | Case-insensitive
Insert Operator
Examples
Enter an expression and click Generate
True rows highlighted
Copied!
Summary
Enter a Boolean expression using variables A–D and operators, and get a full truth table with all possible input combinations.
How it works
- Enter a Boolean expression using variables A, B, C, or D.
- Use operators: AND (&& or AND), OR (|| or OR), NOT (! or NOT), XOR (^ or XOR), NAND, NOR, XNOR.
- Click "Generate Table" or press Enter.
- The tool evaluates every combination of true/false for your variables.
- Rows where the expression is true are highlighted for quick reading.
Use cases
- Verify logic circuit designs before hardware implementation.
- Check whether two Boolean expressions are logically equivalent.
- Study digital logic and propositional calculus.
- Debug conditional logic in programming by mapping all cases.
- Prepare for computer science or discrete math exams.
- Simplify Boolean expressions by spotting patterns in the output column.
Frequently Asked Questions
Last updated: 2026-06-13 ·
Reviewed by Nham Vu