FREE · NO SIGNUP · FAIR-USE LIMITS

Boolean Expression to Logic Circuit

Paste a Boolean expression from your homework and get a clean logic gate diagram: AND, OR, NOT, NAND, NOR, and XOR, with labeled inputs and outputs.

Logic circuit · every result uses this diagram type  ·  ⌘↵ to run

Free · no signup · no credit card · daily fair-use limits

Live sample · F = XY'(W' + Z') + X'Z using only NOT and 2-input AND/OR — type above to make your own
F = XY'(W' + Z') + X'Z Logic gate diagram with 9 gates, 4 inputs, 1 outputs NOT NOT NOT NOT OR AND AND AND OR W X Y Z F F = XY'(W' + Z') + X'Z

Try a homework-style Boolean expression

One click draws the gate-level circuit. The expression stays in the box above, so you can change it and generate your own.

How to convert a Boolean expression to a logic circuit

  1. Type the expression

    Enter it as written, for example F = XY'(W' + Z') + X'Z. Name the inputs and the output if your assignment does.

  2. Add gate rules

    Say which gates are allowed, such as only NOT and two-input AND/OR, or NAND-only, so the circuit matches the question.

  3. Generate the circuit

    Each sub-term becomes a gate. Inverted literals get a NOT gate, products get AND gates, and sums get OR gates.

  4. Check and download

    Trace each path against the expression, then download the diagram as SVG or PNG for your lab report or homework.

From Boolean algebra to gates

Frequently asked questions

How do I write NOT in the expression?

Use a prime (X'), an exclamation mark (!X), the word NOT, or describe it in words. All of them are read as an inverted input.

Can I limit the circuit to two-input gates?

Yes. Add "strictly using two-input AND/OR gates" (or NAND-only, NOR-only) to the prompt and the generator chains gates to respect that limit.

Does it simplify the expression first?

It draws the expression you give it. If you want the minimal circuit, simplify it first (Boolean algebra or a Karnaugh map) or ask for the simplified form in the prompt.

Is it free?

Yes. There is no signup or credit card. Generation has hourly fair-use limits, and you can download every result as SVG or PNG.

More logic and engineering diagrams

Gate diagrams, ladder logic, and process flows from a sentence.