About KmapGen
KmapGen is a set of free digital-logic tools for students of computer science and electrical engineering: a Karnaugh map solver, a truth table generator, a Boolean algebra simplifier, an IEEE 754 converter, a two’s complement calculator, a base converter and a set of guides.
What makes the answers trustworthy
- Exact minimization. The K-map solver and the simplifier do not group by heuristics. They compute every prime implicant with the Quine–McCluskey method and search the prime implicant chart exhaustively (Petrick’s method with branch and bound), keeping every cover that ties for the fewest terms and then the fewest literals.
- Tested against brute force. The automated test suite compares the minimizer with an independent brute-force search (prime implicants found by testing every possible group, then every combination of them) on 3,000 random functions of 2 to 4 variables and dozens of 5- and 6-variable functions, requiring exactly the same set of minimal answers. It also checks every answer against the truth table and checks that every step of the algebraic simplifier preserves the truth table.
- IEEE 754 checked against the JavaScript engine. The converter uses exact integer arithmetic; its decoding is compared with the browser’s own
DataViewon every 16-bit pattern and tens of thousands of random 32- and 64-bit patterns, and its encoding with correctly rounded conversions. - Parser round trips. The expression parser is tested on every supported syntax, and random expressions are printed in each notation and parsed back to the same truth table.
- Worked examples are computed. The maps and results in the guides are rendered by the same code as the tools when the site is built, so the text and the pictures cannot drift apart.
Privacy by design
Everything runs in your browser. There are no accounts, no cookies, no analytics and no advertising. Your inputs are never sent anywhere; the address bar keeps them only so you can share a link. See the privacy policy.
Who runs it
KmapGen is published by YE Consulting. Found a wrong answer, a confusing explanation or a missing feature? Write to contact@kmapgen.com; corrections are taken seriously and fixed quickly.