Cloze Card Maker
Sentences plus key terms → fill-in-the-blank cloze cards for Anki, Deckwright, Lessonleaf.
How it works
Hides your key terms in your own sentences: every occurrence of a term becomes a cloze gap, one card per term (or all gaps on one card). Longer terms win over shorter ones, whole words only by default, any language. The result is in the shared cloze syntax that Anki, Deckwright and Lessonleaf read. No AI: only the terms you list are hidden.
- Terms are matched longest first, so “carbon dioxide” is one gap even when “carbon” is also a term; overlapping matches are skipped. Whole-word matching uses Unicode letters and digits as word characters, so it works for accented and non-Latin scripts.
- “One card per term” numbers the distinct terms of each sentence c1, c2 …; the same term twice in a sentence shares its number (both gaps are hidden together). “All gaps on one card” uses c1 for every gap.
- The cards are read back with the shared card parser (cards.ts), so the card count is what Deckwright and Lessonleaf will show; Anki reads the same {{c1::…}} syntax in its Cloze note type.
Exact text matching: inflected forms (plural, other cases) are only found when you list them too.
Sources
- Anki Manual — Cloze deletion (Ankitects)
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Lessonleaf Study notebook with flashcards
Take notes as an outline, write flashcards inside them and review what is due today.
-
Deckwright Slide deck studio
Write Markdown, get an accessible slide deck — charts, diagrams, PDF, HTML and PowerPoint.
Related tools
- Highlights to Flashcards – Turn ==marked== text or PDF highlights into page-referenced notes and cloze or Q/A cards.
- Flashcard Format Converter – Convert flashcards between Anki text, CSV, Quizlet, Mochi, Obsidian and Lessonleaf.
- Flashcards from Markdown, CSV or Anki Text – Turn notes into flashcards: Q:/A: pairs, term :: definition lines, cloze gaps, CSV or Anki text.
How to use the Cloze Card Maker
Turn your own sentences and a list of key terms into fill-in-the-blank cloze flashcards for Anki, Deckwright and Lessonleaf.
What it is for
Cloze cards — sentences with a word hidden — are one of the most effective flashcard types, but typing {{c1::…}} around every term is tedious. This tool does it for you: paste sentences, list the key terms, and every occurrence of a term becomes a gap.
It is deliberately simple and predictable. Only the terms you list are hidden, nothing is rewritten or invented, and the same input always gives the same cards. The output uses the cloze syntax that Anki's Cloze note type, Deckwright's Study view and Lessonleaf all read.
Worked example
The default sentences are four lines about photosynthesis, for example "Chlorophyll absorbs mostly red and blue light." and "The Calvin cycle fixes carbon dioxide into sugar." The key terms are: chloroplasts, chlorophyll, red and blue light, oxygen, Calvin cycle, carbon dioxide.
The result is 6 cloze cards from 4 sentences with 6 gaps:
- "Photosynthesis takes place in the {{c1::chloroplasts}} of plant cells." — one card.
- "{{c1::Chlorophyll}} absorbs mostly {{c2::red and blue light}}." — two cards: one hides "Chlorophyll", the other "red and blue light".
- "The light reactions split water and release {{c1::oxygen}}." — one card.
- "The {{c1::Calvin cycle}} fixes {{c2::carbon dioxide}} into sugar." — two cards.
"Chlorophyll" matched although the term was written in lower case, because matching ignores case by default. The cards table shows each front with […] and the hidden answer.
With "All gaps of a sentence on one card", the German example "Der Hund schläft unter dem Tisch." with the terms Hund and Tisch becomes a single card with both words hidden at once.
How to read the result
- Cards — how many flashcards the notes make (one per gap number).
- Sentences used / without a term — sentences without any of your terms give no card and are listed.
- Cards (cloze syntax) — the text to copy or download; each sentence is one note.
- Cards table — every card's front and the answer you have to recall.
- Warnings — key terms that appear in no sentence, so you can spot typos.
Tips and common mistakes
- List the inflected forms you want to hide too ("cell, cells"); matching is exact, so plurals are not found automatically.
- Longer terms win: list "carbon dioxide" and "carbon" and the phrase becomes one gap, not two.
- Put a term with a comma in quotes, for example "Washington, D.C.".
- Use "Whole words only" (the default) so "art" does not hide part of "partner"; switch it off for prefixes and word parts.
- Keep one fact per sentence; a sentence with five gaps makes five similar cards.
FAQ
Does it work in other languages?
Yes. Word boundaries use Unicode letters and digits, so accented letters and non-Latin scripts match as whole words.
What if the same term appears twice in a sentence?
Both occurrences share one gap number, so they are hidden together on the same card.
Can I import the cards into Anki?
Yes. Copy them into notes of the Cloze type, or run them through the Flashcard Format Converter to get an Anki text file with the note type set.
Where do the cards go in Lessonleaf?
Paste each sentence into a block; Lessonleaf turns the {{c1::…}} gaps into cards for its review queue.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://clozecardmaker.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://clozecardmaker.usefulweb.site/mcp· tool namecloze_card_maker
Example request
curl -s -X POST https://clozecardmaker.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{}'