About the Logic Gate Simulator

A free interactive tool for exploring the seven basic digital logic gates.

What it is

The Logic Gate Simulator lets you toggle two binary inputs, pick a gate โ€” AND, OR, NOT, NAND, NOR, XOR, or XNOR โ€” and watch the output and full truth table update instantly. It's built for anyone learning digital logic, Boolean algebra, or the fundamentals of how computers make decisions at the hardware level.

Features

Seven gate types

AND, OR, NOT, NAND, NOR, XOR, and XNOR, all in one tool.

Toggleable inputs

Click either input to flip it between 0 and 1 and see the output change live.

Live truth table

The complete truth table for the selected gate, with your current row highlighted.

Instant, private

Runs entirely in your browser. No data is sent anywhere.

Ready to use it?

Free, no sign-up required.

Open the Logic Gate Simulator