ChatDiagram
Tools/Karnaugh map maker

Karnaugh map maker.

Create a Karnaugh map from a Boolean function, minterm list or truth-table output. The map uses Gray-code row and column labels so adjacent 0 and 1 cells are easy to inspect.

HeatmapEnter to send

Free account, no card · Export SVG, PNG or PDF

See it work

Karnaugh map examples.

Same tool, four requests. Every drawing below is a real render.

What you type
Create a 4-variable Karnaugh map for traffic-light controller output F(A,B,C,D) with minterms 0, 1, 4, 5, 10, 11, 14 and 15; use Gray-code AB rows and CD columns.
Then tryChange minterms 10 and 11 to 0.Rename A through D to controller input labels.
Heatmap: Traffic light controller
Heatmap · echarts-heatmap

Rather start from a finished drawing? Browse 17 heatmap templates →

The drawing

What a Karnaugh map is.

A Karnaugh map, or K-map, arranges truth-table outputs in Gray-code order. Adjacent cells differ by one variable, so groups of 1s can reveal terms that can be simplified in a Boolean expression.

Use it for small Boolean functions where visual grouping remains practical. Name every input variable and state any don’t-care conditions; then verify the simplified expression against the original truth table.

Engine
echarts-heatmap
Editable
Describe the change
Export
SVG · PNG · PDF
Heatmap: What a Karnaugh map is
Who uses it

Who uses Karnaugh maps.

Heatmap: Digital-logic studentsDigital-logic students

Turn a truth-table output into a grid before simplifying the Boolean expression.

Heatmap: Control engineersControl engineers

Review a compact interlock condition with its input variables visible.

Heatmap: Security designersSecurity designers

Discuss the asserted states of a simple alarm function.

How it works

How to make a Karnaugh map in three steps.

01

Describe it

One paragraph is enough to start.

“Create a 4-variable Karnaugh map for traffic-light controller output F(A,B,C,D) with minterms 0, 1, 4, 5, 10, 11, 14 and 15; use Gray-code AB rows and CD columns.”
02

See the drawing

Drawn by the right engine.

Heatmap: Traffic light controller
03

Say what changes

Every edit keeps a version.

Change minterms 10 and 11 to 0.
V2 · DRAWN FROM V1, NOTHING RETYPED
FAQ

Common questions

What is a Karnaugh map?

A Karnaugh map is a visual grid for simplifying Boolean functions. Its cells represent input combinations ordered so adjacent cells differ by one variable.

How do I make a Karnaugh map?

Provide the variable names and either a truth table, minterms or the 0 and 1 cell pattern. Specify any don’t-care states separately.

Why does a Karnaugh map use Gray code?

Gray code ensures neighbouring cells differ by only one input variable, which makes valid simplification groups visible.

How many variables work well in a Karnaugh map?

Two to four variables are commonly handled on a compact map. Larger functions are usually better simplified with other methods.

Related tools

Other drawings for the same work.

Make a Karnaugh map now.

Free account, no card. Describe the Boolean function or minterms.

Open the editor