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

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

  1. Enter a Boolean expression using variables A, B, C, or D.
  2. Use operators: AND (&& or AND), OR (|| or OR), NOT (! or NOT), XOR (^ or XOR), NAND, NOR, XNOR.
  3. Click "Generate Table" or press Enter.
  4. The tool evaluates every combination of true/false for your variables.
  5. 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