← All text tools

Logic Circuit Simulator

Describe a circuit with gate equations, flip input switches in the diagram and read the live outputs, gate count and full truth table of AND, OR, NOT, NAND, NOR, XOR and XNOR gates.

  • Free
  • No sign-up
  • Works on any device

About Logic Circuit Simulator

Describe a combinational circuit as gate equations, one per line, and this simulator wires it, draws it, and evaluates it. Use AND, OR, NOT, NAND, NOR, XOR and XNOR or the symbols & | ! ^ + *, with brackets and the constants 0 and 1. Every name that is never defined becomes an input switch you can flip by clicking it in the diagram, and green wires show where the current is a 1. A full truth table for up to ten inputs is included. The example full adder, Sum = A XOR B XOR Cin, gives Sum 1 and Cout 1 when all three inputs are 1.

How to use Logic Circuit Simulator

  1. Write your circuit as equations such as Y = A AND NOT B; later lines can use earlier outputs.
  2. Click the input switches in the diagram, or edit the switch text, to see the outputs change.
  3. Read the truth table and counts, then download the diagram as SVG or PNG or the table as CSV.

Why use this tool?

Also known as

Frequently asked questions

Can I drag and drop gates?

Not in this version. You describe the circuit in text and the page draws it, which keeps the circuit exact and easy to copy. The input switches in the drawing are clickable.

Does it support flip-flops or loops?

No. Only combinational circuits without feedback are simulated, so a circuit whose output feeds back into itself is rejected with the loop named. Memory elements are not included.

How are chains like A XOR B XOR C read?

Chains of AND, OR or XOR become one gate with several inputs, and XOR is 1 when an odd number of inputs are 1. Chains of NAND, NOR or XNOR are read from left to right.

Is Logic Circuit Simulator free?

Yes. Logic Circuit Simulator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Logic Circuit Simulator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.