About the Truth Table Generator

Parses a boolean expression and generates its complete truth table.

What it is

A recursive-descent parser handles operator precedence (NOT highest, then AND/NAND, XOR, OR/NOR, and implication lowest) and parentheses, then evaluates the expression for every combination of up to 5 variables.

Features

Full operator set

AND, OR, NOT, XOR, NAND, NOR, and implication.

Clear error messages

Unbalanced parentheses and unknown tokens are flagged, never silently wrong.

TRUE-row highlighting

Toggle highlighting for quick scanning.

Copy as text

One click copies the table for notes or assignments.

Ready to use it?

Free, no sign-up required.

Open the Truth Table Generator