Truth Table Generator — Boolean Logic
Generate a full truth table from a boolean expression (AND/OR/NOT/XOR/→/↔), up to 8 variables. Client-side.
Operators: AND & · OR | · NOT ! · XOR ^ · → (implies) · ↔ (iff). Variables are single letters.
| Result | |
|---|---|
How to use
- 1 Type a boolean expression using variables and operators.
- 2 Use AND, OR, NOT, XOR, → (implies) or ↔ (iff), and parentheses.
- 3 The complete truth table (all 2ⁿ rows) is generated instantly.
Why use this tool
- Full truth table for any boolean/propositional-logic expression.
- Supports up to 8 variables and standard logical operators.
- Runs entirely in your browser.
Frequently asked questions
What operators are supported?
AND (&), OR (|), NOT (!), XOR (^), implication → (->), and biconditional ↔ (<->). Words (AND, OR, NOT, XOR) and symbols both work.
What is operator precedence?
NOT binds tightest, then AND, then XOR, then OR, then →, then ↔. Use parentheses to override.
How many variables can I use?
Up to 8 (256 rows). Variables are single letters such as A, B, C.
What does the truth table show?
Every combination of true/false values for the variables, with the resulting value of the whole expression.
What is Truth Table Generator?
A truth table generator parses a boolean (propositional-logic) expression and lists the result for every combination of its variables’ truth values.
Features
Full expression parser
AND, OR, NOT, XOR, NAND, NOR, IMPLIES (>), and IFF with correct operator precedence.
All variable combinations
Detects the variables and enumerates every row of the truth table.
Free & private
Runs on your device — nothing is uploaded.
Example
Input
A AND B
Output
A B | A∧B
0 0 | 0
0 1 | 0
1 0 | 0
1 1 | 1
Common use cases
-
1
Digital logic design
Verify a gate expression before building or simplifying a circuit.
-
2
Discrete math study
Check logical equivalences and tautologies.
-
3
Simplify conditions
See how a compound Boolean condition behaves across all inputs.
Zerethon's truth table generator parses a Boolean expression and produces its full truth table in your browser. It supports AND, OR, NOT, XOR, NAND, NOR, IMPLIES, and IFF with standard precedence, listing every combination of the input variables. Everything runs client-side — nothing is uploaded.
- Category
- Math
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
References
- Truth Table — Wolfram MathWorld — Wolfram MathWorld
- Truth table — Wikipedia
Privacy
Your data never leaves your browser unless explicitly stated. Truth Table Generator runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
Percentage Calculator
Three-in-one percentage calculator: X% of Y, X as a % of Y, and % increase/decrease. Instant, client-side.
Open toolScientific Calculator
Online scientific calculator — trig, log, powers, roots, factorial, π/e, DEG/RAD, with a proper expression parser. Client-side.
Open toolFraction Calculator
Add, subtract, multiply and divide fractions with automatic simplification, decimal and mixed-number output. Client-side.
Open toolCombinations & Permutations Calculator
Exact nCr, nPr and n! with big-integer precision. Client-side, no signup.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.