Home Pricing Blog Tools Contact

How to create Anki flashcards from your classes with AI (2026)

From recorded class to importable deck in minutes: prompts that generate basic and cloze cards in CSV, the rules of cards that work, and the mistakes that ruin a deck.

Quick answer: to create Anki flashcards from a class, first get its transcript —by recording the session and transcribing it with a tool like VOCAP— and then ask an AI model (Claude or ChatGPT) for question;answer pairs in CSV format with a semicolon as the separator, one card per atomic fact. Import the file into Anki (File > Import), review and edit the cards, and study with spaced repetition. A 1-hour class turns into a 20-40 card deck in about 10 minutes.

Anki is the most effective memorization tool there is —spaced repetition is backed by decades of research— but it has a brutal entry cost: making the cards. Turning a one-hour class into a good deck by hand takes another hour on top, which is why most students give up on Anki within two weeks.

AI removes that entry cost. In this guide you will see the complete workflow to turn any recorded class into an importable deck in minutes, the exact prompts for basic and cloze cards, the rules that separate a useful card from a useless one, and the mistakes that turn a generated deck into a waste of time.

Why generate flashcards with AI

Anki's bottleneck has never been the reviews —those are 10-20 minutes a day— but the creation. Generating the cards with AI changes the equation:

Important nuance: making cards by hand is also studying (the "elaboration effect"). When generating them with AI, don't give that up entirely: the review-and-edit pass over the deck —correcting, rephrasing in your own words, deleting the trivial— recovers most of that benefit in a fraction of the time.

Basic vs cloze cards: which to use

Anki has two main note types, and choosing well makes the difference in retention:

Card type How it works Best for Example
Basic (question/answer) Front with a question, back with the answer Definitions, concepts, cause-effect relationships, exam-style questions "What does price elasticity of demand measure?" → "The % change in quantity demanded in response to a 1% change in price"
Cloze (fill in the gap) A sentence with a hidden part you must recall Formulas, enumerations, dates, legal articles, literal phrases "Elasticity is calculated as {{c1::ΔQ%/ΔP%}}"
Basic (and reversed) Generates two cards: A→B and B→A Vocabulary, terms in two languages, concept-author pairs "Invisible hand ↔ Adam Smith" (quizzes you in both directions)

For a typical class the optimal approach is to mix: basic cards for the concepts and cloze for the exact data. You can ask the AI for both formats in the same pass, in separate blocks, as you will see in the prompts.

Step by step: from class to Anki deck

Step 1 — Get the class transcript

Record the class (a phone voice recorder on the desk is enough in most classrooms; ask for permission if necessary) and transcribe the recording with a quality engine. This step conditions everything else: a badly transcribed technical term ends up as an incorrect card you will memorize wrong for months. Tools like VOCAP transcribe the audio accurately and return clean, punctuated text. For the details, check our guides on transcribing university lectures and transcribing online classes.

Step 2 — Generate the cards with an AI prompt

Paste the transcript into Claude or ChatGPT with one of the prompts from the next section. The keys of the prompt: ask for CSV format with a semicolon as the separator (commas appear inside the sentences and would break the columns), one card per atomic fact, and prioritizing what the professor emphasized or repeated. For a one-hour class, ask for 25-35 cards.

Step 3 — Review and edit the deck

Don't import blindly. Read the generated cards, check the doubtful answers against your notes, rephrase in your own words the ones that sound like a textbook and delete the trivial ones. This pass takes 5-10 minutes and is where you recover the elaboration benefit you would lose by generating on autopilot.

Step 4 — Import the CSV into Anki

Save the CSV block as a text file (.txt or .csv). In Anki: File > Import, select the file, check that the detected separator is the semicolon and map the first column to the front and the second to the back. For cloze cards, first select the Cloze note type and map the text to its field. Choose the destination deck and confirm: in seconds the cards are in.

Step 5 — Study with spaced repetition

Review the deck daily and let the algorithm space out the reviews; don't "review ahead" or reset the deck. Add the cards from each new class to the same subject deck and the system mixes the new material with the pending reviews. If you also want full notes from the same recording, combine it with our workflow to convert audio into notes with AI.

Is the transcript the missing step?

Upload your class recording and get a clean transcript with a summary. Try VOCAP free: 30 minutes, no card required.

Try VOCAP Free

Ready-to-copy prompts

Paste the class transcript and add one of these prompts on top.

Basic deck in CSV (question/answer)

From this class transcript, generate 25-35 flashcards for Anki in
CSV format with a semicolon as the separator: one card per line,
first column the question, second the answer. Rules: one card per
atomic fact (definition, formula, date, relationship), specific
questions (never "explain X"), answers of 1-2 sentences, prioritize
what the professor emphasized or repeated. Do not invent content
that is not in the class. Transcript: [paste the transcript here]

Cloze cards for formulas and exact data

From this class transcript, extract the formulas, enumerations,
dates and exact data, and turn them into 10-15 Anki cloze cards:
one sentence per line with the part to memorize wrapped in the
{{c1::answer}} syntax. If a sentence has two independent gaps, use
{{c1::...}} and {{c2::...}}. Only sentences that appear in the class.
Transcript: [paste the transcript here]

Deck quality filter

Review this flashcard deck and improve it: (1) remove the trivial
or duplicate cards, (2) split the ones that ask more than one thing,
(3) rewrite the vague questions so they have a single correct
answer, (4) mark with [REVIEW] the answers you are not sure about.
Return the corrected CSV. Deck: [paste the CSV here]

The rules of a good card (whether the AI follows them or not)

An AI-generated deck is only as good as the rules you give it. These are the ones that separate cards that lock in knowledge from cards that merely feel like studying:

How to organize decks by subject

The structure that works best in practice is simple: one deck per subject, not per topic or per class. Anki manages reviews at the deck level, and fragmenting into dozens of mini-decks forces you to review them one by one.

Turn any class into study material

Accurate AI transcription + automatic summary with Claude (Anthropic). Upload your class audio and get a transcript, summary and key points ready to generate your flashcards. From €1/hour.

Start Free with VOCAP

Common mistakes that ruin an AI-generated deck

Frequently asked questions

How do you create Anki flashcards from a class with AI?

In three steps: get the class transcript (by recording the class and transcribing it with a tool like VOCAP), paste the text into Claude or ChatGPT with a prompt asking for question;answer pairs in CSV format with a semicolon separator, and import the file into Anki via File > Import, mapping front and back. A one-hour class turns into a 20-40 card deck in a few minutes.

What format should the CSV have to import it into Anki?

Plain text with one card per line and a semicolon as the separator between front and back (the safest option, because commas appear inside the sentences themselves). When importing, Anki detects the separator and lets you map each column to a field. For cloze cards, ask for the text with the {{c1::answer}} syntax and choose the Cloze note type when importing.

How many flashcards should I generate per hour of class?

Between 20 and 40 for dense subjects. Fewer than 15 leaves concepts out; more than 60 means you are turning filler into cards. The key is judgment: one card per atomic fact, prioritizing what the professor emphasized and discarding the anecdotes.

Do AI-generated flashcards work as well as handmade ones?

Spaced repetition works the same; what you lose is part of the elaboration benefit (making the card is also studying). The solution is to review and edit the generated deck before studying it: correcting, rephrasing in your own words and deleting the trivial cards recovers most of that benefit in a fraction of the time.

Is it better to use basic or cloze (fill-in-the-gap) cards for classes?

Basic cards (question/answer) for definitions, concepts and exam-style questions; cloze (fill in the gap) for formulas, enumerations, dates and literal phrases. For a typical class the optimal approach is to mix both formats, asking the AI for them in the same pass in separate blocks.

Can I create flashcards from an in-person class I recorded with my phone?

Yes. All you need is the audio: record the class with your phone, transcribe it with a quality engine like VOCAP's and use that transcript as the source. The only condition is that the transcript must be good: a badly transcribed technical term ends up as an incorrect card you will memorize wrong.

About the author

Manuel Gregorio — Founder of VOCAP

Founder of VOCAP. Since 2024 I help professionals — lawyers, doctors, journalists, podcasters and business teams — turn their recordings into searchable text with AI, GDPR-compliant and from EUR 1/hour.

Try VOCAP free 30 min transcription
Start Free →