Truth Table Generator
This tool makes a truth table for a logic formula. It uses AND, OR, NOT, XOR, NAND, NOR and implication, and tells you if the formula is a tautology.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Truth Table Generator online
- Type the formula. With letters and operators.
- Choose the style. Values as 1 and 0 or T and F.
- Read the table. See every row and the kind of formula.
- Copy it. Copy the result or the table.
Why use this free Truth Table Generator
- Words or signs for operators
- Up to 64 rows
- Tautology and contradiction check
- Three value styles
- Copy as text
- Share by link
What a truth table is
A truth table lists every combination of true and false for the variables of a formula and shows the result for each. It is the basic tool of propositional logic, used in maths, computer science and electronics to check that a formula means what you think it means, or that two formulas are equal.
Writing a formula
Use single letters or short names for variables, such as A, B and C. Operators can be written as words (AND, OR, NOT, XOR, NAND, NOR, XNOR, IMPLIES) or as signs: ! or ~ for not, & for and, | for or, ^ for xor, -> for implies and <-> for if and only if. Brackets group parts. AND binds tighter than XOR, XOR tighter than OR, and OR tighter than ->.
A worked example
The formula A AND (B OR NOT C) has 3 variables and so 8 rows. It is true when A is true and either B is true or C is false. The tool lists the rows, counts the ones where the result is true, and says what kind of formula it is: a tautology if true in every row, a contradiction if false in every row, and a contingency otherwise.
Options
Show values as 1 and 0, T and F, or true and false. Start the rows from all false, the usual order, or from all true. Up to 6 variables are allowed, which makes 64 rows. The table can also be copied as tab-separated text into a spreadsheet or a document.
Checking equivalence
To check that two formulas are equal, make a table for each and compare the result columns, or join them with <-> and see if the result is a tautology. De Morgan’s laws are easy to test this way. Everything is calculated in your browser, and the formula is not sent anywhere.
Using the tool
As you type in the Truth Table Generator, the result appears at once. Open a text file into the box, or drop one on it.
Truth Table Generator: frequently asked questions
How many variables can I use?
What does XOR mean?
What is a tautology?
Can I use symbols instead of words?
Can I copy the table?
Does the Truth Table Generator keep a copy of my text?
Can I chain the Truth Table Generator with another tool?
Related searches for Truth Table Generator
- Truth Table Generator online
- free Truth Table Generator
- Truth Table Generator online free
- Truth Table Generator for mobile
- Truth Table Generator without sign up
- Truth Table Generator – Math, Stats & Charts
Truth Table Generator is a free online tool on MAITBOX, in the Math, Stats & Charts group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.