← Pencilbox
Logic
boolean truth tables
build v6.0
Logic builds the full truth table for a boolean expression — every combination of the variables and whether the whole thing comes out true or false. Write an expression with AND, OR, NOT and the variables, and the table fills in. Handy for logic homework, conditionals and digital circuits. Nothing is uploaded.
Boolean expression
Use AND · OR · NOT · XOR and parentheses, or the symbols && || ! ^ . Variables are single letters.

Variables are detected automatically from the letters you use, in alphabetical order; up to about ten keeps the table a sensible size (2¹⁰ rows). The expression is evaluated with a small safe parser — not your browser's eval — so only the boolean operators and variables are understood. Everything runs on your device.