Online Digital Logic Circuit Simulator

Build, simulate, and analyze digital logic circuits — free in your browser. Convert Boolean expressions to gate diagrams instantly, simulate flip-flops in real time, and visualize signal flow with a live oscilloscope. No download or sign-up required.

Simulation Engine Active
Switch A = 1 Switch B = 0 OR LED = 1

Digital Logic Circuit Builder

Design, simulate, and analyze logic gates visually on an infinite canvas.

Optimized for mobile viewports. Opens in full screen for a native app experience.
| Untitled Circuit
Circuit Analysis (Output)
Select an Output Node...

Free Online Digital Logic Circuit Simulator & Gate Builder

CircuitsLab Wiki's Digital Logic Simulator is a professional-grade, browser-based Electronic Design Automation (EDA) tool built for students, educators, and hardware engineers. Drag, drop, and connect logic gates on an infinite canvas, simulate sequential flip-flops, decode BCD to 7-segment displays, and export clean schematics — all without installing any software.

Boolean Expression to Circuit Converter

Type any Boolean expression — for example A + (B * C) or (A NAND B) XOR C — and press Enter. Our bi-directional logic engine instantly renders the full gate schematic on the canvas. The reverse works too: draw a circuit manually and the tool automatically derives the Boolean expression in real time, making it an ideal Boolean expression to circuit diagram converter for coursework and design verification.

Real-Time Logic Gate Simulation

Toggle input switches, pulse buttons, and watch logic states propagate across every wire with zero latency. High (1) signals glow red; Low (0) signals turn grey — giving you instant visual feedback on every node in the circuit. The simulation engine recalculates all paths at 60 fps, making this one of the most responsive logic gate simulators available online.

What You Can Simulate

Logic Gates — All Standard Types

Simulate every fundamental gate in digital electronics: AND, OR, NOT, NAND, NOR, XOR, XNOR, plus high-density 3-input variants (AND3, OR3, NAND3). Build half-adders, full-adders, comparators, and encoder circuits from scratch. Because NAND and NOR are universal gates, you can construct any logic function using only those — the same principle behind modern CPU and FPGA design.

Sequential Circuits — Flip-Flops & Latches

Build and simulate all four standard flip-flop types:

  • SR Flip-Flop — Set-Reset latch for basic memory storage
  • D Flip-Flop — Data / delay edge-triggered register
  • JK Flip-Flop — Universal edge-triggered flip-flop with toggle mode
  • T Flip-Flop — Toggle flip-flop ideal for binary counters

All flip-flops are fully edge-triggered with stable state retention — perfect for studying sequential logic, finite state machines, and shift registers.

Multiplexer & Demultiplexer (MUX / DEMUX)

Configure 2-to-1, 4-to-1, or 8-to-1 multiplexers and matching demultiplexers via the interactive MUX/DEMUX configurator. Select line bits and port sizing are adjustable in real time — ideal for studying data routing and combinational logic design.

BCD to 7-Segment Display Decoder

Connect a 4-bit BCD input to the 7-segment display output component and watch it decode digits 0–9 in real time. This is one of the most searched topics in digital electronics coursework — and here you can simulate it interactively without any hardware.

Real-Time Logic Oscilloscope (Scope)

Attach the logic analyzer / oscilloscope component to any wire and capture live signal waveforms. Zoom in and out on the time axis, measure estimated signal frequency, duty cycle, and captured sample count. Drag to select and zoom into any region of the waveform — essential for analyzing clock sources and sequential circuit timing.

Configurable Clock Source

Add a clock pulse generator to your circuit and configure its frequency (0.1 Hz to 10+ Hz) and duty cycle (10%–90%) via the interactive configurator. A live waveform preview updates as you drag the sliders — making it easy to study clocked flip-flop behavior and synchronous circuits.

Key Features of the Digital Logic Builder

Professional Design Capabilities

  • Bi-Directional Logic Engine: Input a Boolean expression to generate a circuit, or draw manually to derive the expression — works both ways instantly.
  • Hot-Swap Gate Replacement: Drag any gate from the parts bin and drop it onto an existing gate to swap logic types while keeping all wire connections intact.
  • Infinite Canvas with Zoom & Pan: Design large, complex circuits with smooth scroll-wheel zoom and middle-mouse / spacebar panning.
  • High-Resolution Export: Export your finished schematic as a clean image suitable for lab reports, assignments, and documentation.

Component Library

  • Inputs: Toggle Switch, Momentary Push Button, Configurable Clock Source
  • Basic Gates: AND, OR, NOT
  • Advanced Gates: NAND, NOR, XOR, XNOR, AND3, OR3, NAND3
  • Sequential: SR-FF, D-FF, JK-FF, T-FF
  • Combinational: MUX (2/4/8-to-1), DEMUX (1/2/4-to-8)
  • Outputs: LED Probe, BCD 7-Segment Display, Logic Oscilloscope

Keyboard & Mouse Shortcuts

The builder uses professional-grade shortcuts to keep your design workflow fast:

ActionShortcut
Pan CanvasMiddle Mouse or Space + Drag
Zoom In / OutMouse Wheel
Delete ComponentDel
Multi-SelectShift + Click, or Drag Box
Rotate ComponentR
Generate from BooleanEnter in Boolean Input box

Who Is This Tool For?

This free online logic gate simulator is designed for:

  • Students studying digital electronics, computer architecture, or VLSI design
  • Educators looking for an interactive classroom tool for Boolean algebra and circuit theory
  • Engineers & Hobbyists prototyping digital logic before committing to hardware
  • Exam Preparation — visualize flip-flop behavior, truth tables, and De Morgan's laws interactively

Signal Visualization

Wires dynamically reflect logic state: Red = High (1), Grey = Low (0). The high-contrast neon wire style makes it immediately obvious where signals are active or grounded — ideal for debugging complex circuits.

De Morgan's Theorem — Interactive Proof

Verify De Morgan's Laws directly on the canvas. Build both sides of the equivalence:

NOT (A AND B) ↔ (NOT A) OR (NOT B)

Because NAND and NOR are universal gates, every other logic function can be derived from them — the foundation of modern CPU, FPGA, and SSD architecture. Test this principle hands-on with no hardware required.

Frequently Asked Questions — Digital Logic Simulator

Answers to the most common questions about using CircuitsLab Wiki's free online digital logic circuit simulator.

Getting Started

How do I build a logic circuit from a Boolean expression?

Type your expression — such as A + (B * C) for "A OR (B AND C)" — into the Boolean Input box at the bottom of the canvas, then press Enter. The bi-directional engine renders the full gate schematic instantly.

Can I derive a Boolean expression from a circuit I draw manually?

Yes. As you build a circuit by hand, the Circuit-to-Text engine traces all signal paths and displays the resulting Boolean expression in real time in the output field — no extra steps needed.

Is this logic gate simulator completely free?

Yes. CircuitsLab Wiki's Digital Logic Simulator is 100% free, requires no account or installation, and runs entirely in your browser on desktop and mobile.

What is Hot-Swap Gate Replacement?

Drag a new gate from the parts bin and drop it directly onto any existing gate on the canvas. The logic type is swapped instantly while all wire connections remain intact — a major time-saver when iterating on designs.

Technical Capabilities

Which flip-flops can I simulate?

SR (Set-Reset), D (Data), JK, and T (Toggle) flip-flops — all with edge-triggering and real-time state retention. Ideal for studying registers, counters, and finite state machines.

Does the simulator support 3-input logic gates?

Yes. The parts library includes AND3, OR3, and NAND3 gates for high-density logic designs where a standard 2-input gate is not sufficient.

How accurate is the real-time simulation?

Logic states propagate with zero latency and the wire-routing engine recalculates paths at 60 fps. The oscilloscope measures estimated signal frequency, duty cycle, and captured samples in real time.

How do I export my circuit for a lab report?

Click the Export button in the toolbar. This takes a high-resolution screenshot of the canvas, rendered in a clean schematic style suitable for academic documentation and reports.

Can I simulate a BCD to 7-segment decoder?

Yes. Add the 7-Seg output component and wire it to four input bits. It decodes BCD values 0–9 and displays them live on the segment display — no external hardware needed.

Does the tool work on mobile?

Yes. The simulator includes a dedicated mobile preview card and a fullscreen launch mode optimized for touch viewports, giving you a near-native app experience on smartphones and tablets.

Digital Logic Concepts You Can Explore

The simulator is a practical environment for verifying theoretical concepts from textbooks and coursework — no breadboard or oscilloscope required.

Understanding Signal Propagation

Every wire reflects the live logic state of the signal it carries. Red wires indicate a logic High (1) — an active voltage level. Grey wires indicate logic Low (0) — ground or an inactive state. This color-coded feedback makes it straightforward to trace where signals are active or grounded anywhere in a complex circuit.

De Morgan's Theorem — Hands-On Proof

One of the most important identities in Boolean algebra can be verified interactively. Build both equivalent expressions on the canvas and compare outputs:

NOT (A AND B) ↔ (NOT A) OR (NOT B)

NOT (A OR B) ↔ (NOT A) AND (NOT B)

Since NAND and NOR are functionally complete (universal) gates, you can implement any Boolean function using only one of these types — the exact principle used in CMOS transistor-level design for CPUs, FPGAs, and SSDs.

Sequential Logic & State Machines

Chain flip-flops together with a shared clock source to build:

  • Binary ripple counters using T flip-flops
  • Shift registers using D flip-flops in series
  • Synchronous counters with JK flip-flops and combinational feedback

Use the real-time oscilloscope to capture clock edges and verify correct sequential behavior — the same analysis you would do with a physical logic analyzer.

Combinational Circuit Design

Use the Boolean expression generator to rapidly prototype and verify combinational designs:

  • Half adder: Sum = A XOR B, Carry = A AND B
  • Full adder: 3-input sum and carry with cascaded XOR and AND gates
  • Multiplexer logic: Y = (A AND NOT S) OR (B AND S)
  • Priority encoder and binary decoder circuits

Learn more about Digital Logic design(DLD)

Use the real-time oscilloscope to capture clock edges and verify correct sequential behavior — the same analysis you would do with a physical logic analyzer.

Related Free Electronics Tools on CircuitsLab Wiki

The Digital Logic Simulator is part of a larger suite of free, browser-based engineering calculators and simulators: