Skip to main content
Z

Truth Table Generator — Boolean Logic

Generate a full truth table from a boolean expression (AND/OR/NOT/XOR/→/↔), up to 8 variables. Client-side.

Free No signup Client-side Privacy friendly Updated

Operators: AND & · OR | · NOT ! · XOR ^ · → (implies) · ↔ (iff). Variables are single letters.

How to use

  1. 1 Type a boolean expression using variables and operators.
  2. 2 Use AND, OR, NOT, XOR, → (implies) or ↔ (iff), and parentheses.
  3. 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. 1

    Digital logic design

    Verify a gate expression before building or simplifying a circuit.

  2. 2

    Discrete math study

    Check logical equivalences and tautologies.

  3. 3

    Simplify conditions

    See how a compound Boolean condition behaves across all inputs.

Summary

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

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

Build, share, and grow on Zerethon Social

Free signup. Earn points, collect achievements, and connect with creators worldwide.

Try Zerethon free