Interactive digital logic circuit builder with live truth table.
About Logic Gate Simulator
PlainTool Logic Gate Simulator is a free, interactive digital electronics and Boolean logic sandbox that runs 100% locally in your browser with zero signup. Build circuits by placing toggle Input switches (0 or 1), a configurable Clock pulse generator, Output LEDs, and standard IEEE/ANSI logic gates, then wire them together to watch high (1) and low (0) signals propagate in real time.
All seven fundamental digital logic gates are included: AND (outputs 1 only when both inputs are 1), OR (outputs 1 when at least one input is 1), NOT / Inverter (flips 0 to 1 and 1 to 0), NAND (universal gate outputting 0 only when both inputs are 1), NOR (universal gate outputting 1 only when both inputs are 0), XOR / Exclusive-OR (outputs 1 when the two inputs differ—essential for binary addition), and XNOR / Equivalence (outputs 1 when both inputs match).
Whenever your circuit has 1 to 4 Input switches and at least one Output LED, the simulator automatically computes a Live Truth Table and highlights the active row matching your current switch positions. You can also double-click any Input, Clock, or Output label directly on the canvas to rename it (such as A, B, SUM, or CARRY), duplicate selected gates from the canvas toolbar, and undo or redo changes freely.
To help you learn faster, built-in example circuits are included out of the box: a Half Adder (combining XOR and AND gates to add two bits), a 2-to-1 Multiplexer (MUX) using NOT, AND, and OR gates to select between two data lines, and a cross-coupled NOR SR Latch demonstrating sequential feedback and 1-bit memory storage.
Common use cases
- Computer science, engineering, and physics students studying Boolean algebra, De Morgan’s laws, truth tables, and combinational logic.
- Building and verifying classic digital circuits such as Half Adders, Multiplexers, comparators, and SR Latches interactively.
- Teaching and demonstrating digital logic gates and live signal flow in classrooms or online tutorials with no software installation.
Practical tips
- Click any Input switch without dragging to toggle between 0 and 1, or double-click its label on the canvas to rename it.
- Select any gate on the canvas and use the top-left floating toolbar to Copy (Ctrl+D), Undo (Ctrl+Z), Redo (Ctrl+Y), or Delete (Del).
- Load the SR Latch preset to experiment with Set/Reset feedback loops, or the Half Adder preset to see binary Sum and Carry bits in action.
Limits & compatibility: Simulates idealized zero-delay digital logic (0/1) in the browser; live truth tables are generated automatically for circuits with 1 to 4 Input nodes.