Boolean Truth Table Generator
Type a boolean expression using AND, OR, NOT, XOR and get a full truth table for every combination of its variables, with CSV export. Runs entirely in your browser.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Use variables (A, B, C…), AND/&&, OR/||,
NOT/!, XOR, and parentheses. Example shown — edit to try your own.
How it works
- Type a logical expression using variables and AND/OR/NOT/XOR operators.
- The tool detects every unique variable and generates all possible True/False combinations.
- Each row is evaluated and the result column updates instantly as you type.
- Download the table as a CSV for documentation or test-case generation.
FAQ
What operators can I use?
AND (or &&), OR (or ||), NOT (or !), XOR, and parentheses for grouping. Variables can be any letter or word like A, B, or Enabled — they're case-insensitive.
How many variables can I use?
Up to 6 — a 6-variable table already has 64 rows, which is close to the limit of what stays readable on screen.
Is this evaluated exactly, or approximated?
Exactly — the expression is tokenized and parsed into a real evaluator with standard operator precedence (NOT, then AND, then XOR, then OR), and every row is computed directly, not estimated.
How we compare
| Feature | Online Tool Store | Doing it by hand |
|---|---|---|
| Instant results as you type, up to 6 variables | ✓ | Slow and error-prone past 3-4 variables |
| CSV export | ✓ | ✗ |