Alex WeberSchool tools

No. 01 stablelogic · circuits

Expression to logic gates

Type a Boolean expression in words or symbols (∧ ∨ ¬ ⊕ → ↔) with round, square or curly brackets. You get the circuit, live inputs and a truth table.

Boolean expression

Separate several outputs with ; and name them if you like, for example Sum = A ⊕ B; Carry = A ∧ B.

Try an example

Inputs

Flip a variable here, or click its box in the circuit.

Blue is 0. Red is 1.

Fig. 1

Logic gate circuit

Wires and gates take the colour of their current value.

Drag to pan. Ctrl or ⌘ + scroll to zoom.
Table 1

Truth table

Click a row to load those values into the circuit.

Ref. Accepted syntax
NOTNOT   ¬   ~   !   −  
Before a term. Or after it as A′ or A' or A̅.
ANDAND   ∧   ·   .   &   &&   *  
Or write terms side by side: AB, A(B+C), A′B.
OROR   ∨   +   |   ||
XORXOR   ⊕   ^   ⊻
NAND / NORNAND ⊼ ↑    NOR ⊽ ↓
XNORXNOR   ⊙   ↔   ⇔   ≡   <->   IFF
IMPLIESIMPLIES   →   ⇒   ⊃   ->   =>
Drawn as a labelled box, since it has no standard symbol. Tick “Draw only AND, OR and NOT” to expand it.
Constants0   1   TRUE   FALSE   ⊤   ⊥
Brackets( )   [ ]   { }
Any mix, but each pair must match: [ (A) ] works, [ (A ] does not.
LaTeX\land \lor \neg \oplus \to \iff
Also accepted, so you can paste from a document.
PrecedenceNOT, then AND / NAND, then XOR / XNOR, then OR / NOR, then →, then ↔
→ groups to the right: A → B → C means A → (B → C). The “Read as” line shows exactly how your expression was grouped.