Flashcard Format Converter
Convert flashcards between Anki text, CSV, Quizlet, Mochi, Obsidian and Lessonleaf.
How it works
Converts flashcards between six text formats: the card syntax of Deckwright and Lessonleaf (Q:/A:, term :: definition, cloze), CSV, Anki “Notes in Plain Text” with note types and tags, Quizlet import text, Mochi Markdown and the Obsidian Spaced Repetition plugin syntax. Two-way cards, cloze gaps with hints and tags are carried over where the target can hold them; everything a format cannot hold is listed. The result is read back to check it.
- Every format is read into one note model (basic, two-way or cloze; question, answer, tags). The shared syntax is read with the same parser as Deckwright’s Study view (cards.ts), CSV with RFC 4180 rules, Anki text with its file headers (#separator, #html, #notetype column, #tags column, #deck column) and HTML turned into text.
- Obsidian Spaced Repetition: tag lines such as #flashcards/deck set the deck of the cards below; front::back, front:::back (two-way), multi-line cards with a ? or ?? line, ==cloze== deletions (with ^[hint] and [^n] groups); <!--SR:…--> scheduling comments are ignored. Mochi: sides split at a --- line, cards at the delimiter line; {{1::…}} groups and {{…}} deletions. Quizlet: one card per line, term and definition split at a tab (or comma, or " - ").
- Cloze gaps are kept as {{cN::answer::hint}} internally; Obsidian gets ==answer== (classic ==answer==[^N] when gaps share a number), Mochi {{N::answer}}, Quizlet one line per gap (sentence with […] → hidden text).
- Check: the output is parsed again with the target format’s reader; “verified” means it gives back the expected number of notes (Quizlet and Mochi count the cards they split into).
Text formats only: Anki .apkg packages, Mochi .mochi archives and pictures are not read or written, and review history is not converted. Card formatting beyond bold, italics and line breaks may change.
Sources
- Anki Manual — Importing text files (separators, HTML, file headers, note type and tags columns) (Ankitects)
- Anki Manual — Cloze deletion (Ankitects)
- Obsidian Spaced Repetition — flashcards, cloze cards and decks (st3v3nmw/obsidian-spaced-repetition)
- Mochi docs — cards (sides) and importing Markdown or CSV (Mochi Cards)
- Quizlet Help — creating sets by importing content (Quizlet)
- RFC 4180 — CSV (IETF)
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
- Flashcards from Markdown, CSV or Anki Text – Turn notes into flashcards: Q:/A: pairs, term :: definition lines, cloze gaps, CSV or Anki text.
- Highlights to Flashcards – Turn ==marked== text or PDF highlights into page-referenced notes and cloze or Q/A cards.
- Cloze Card Maker – Sentences plus key terms → fill-in-the-blank cloze cards for Anki, Deckwright, Lessonleaf.
- Outline Notes to Flashcards – Turn an indented Markdown outline with term :: definition lines into flashcards, CSV and Anki text.
How to use the Flashcard Format Converter
Move flashcards between Anki text, CSV, Quizlet, Mochi, Obsidian Spaced Repetition and the Lessonleaf/Deckwright card syntax without losing cloze gaps or tags.
What it is for
Every flashcard app has its own text format. Anki exports notes as tab-separated text with headers, Quizlet wants one term and definition per line, Mochi splits sides at a "---" line, and the Obsidian Spaced Repetition plugin uses "::" and ==highlights==. Moving a deck between them usually means hand-editing or losing your cloze cards.
This converter reads six formats into one model of notes — basic, two-way or cloze, with their tags — and writes any of the six. Whatever the target cannot hold (tags in Quizlet, hints in Mochi, two-way cards in Mochi) is listed in an info box, not dropped silently. The output is then read back with the target's own reader as a check.
It converts text, not packages: Anki .apkg files, Mochi .mochi archives, pictures and review history are not included.
Worked example
The Obsidian example has the deck tag #flashcards/geography, a basic card "Capital of France::Paris", a two-way card "Largest ocean:::Pacific", a cloze note "The ==Danube== flows into the ==Black Sea==." and a scheduling comment from the plugin.
Converting to Quizlet gives 3 notes (5 cards) in and 4 lines out:
- "Capital of France → Paris" and "Largest ocean → Pacific" as tab-separated lines;
- the cloze note as one line per gap: "The […] flows into the Black Sea." with the answer "Danube", and the same sentence with "Black Sea" hidden.
The info boxes explain the changes: Quizlet's import text has no tags, the cloze note became one term per gap, and the two-way card became one term because Quizlet quizzes both directions itself. The scheduling comment was ignored. "Read back: OK" means reading the Quizlet text again gave the expected 4 cards.
Going the other way, the shared card syntax to Anki writes the header lines, one row per note with its note type (Basic, Basic (and reversed card) or Cloze), the fields as HTML and the tags in the fourth column.
How to read the result
- Notes / Cards before / Cards after — notes are what you wrote; cards are what an app would show (a two-way note is two cards, a cloze note one card per gap number).
- Read back — OK when the output parses back to the expected number of notes.
- Converted text — copy it or download the file with the right extension.
- Info boxes — what the target format could not keep.
- Notes table — each note's kind, sides and tags, to check that the source was read correctly.
Tips and common mistakes
- Choose the source format if auto-detection guesses wrong; tab-separated lines without headers are read as Quizlet text.
- Recent Anki versions read the header lines of the file, so the note type, HTML and tags columns are set for you; check the import preview anyway.
- In Mochi, pick Markdown, a single file, and enter the same card delimiter as in the converter ("===" by default).
- In Obsidian, keep "Convert ==highlights== to clozes" on so the cloze cards work.
- Tags with spaces get underscores in Anki, CSV and Obsidian, because those formats separate tags with spaces.
FAQ
Are cloze hints kept?
Yes in Anki, CSV, Obsidian (as ==answer==^[hint]) and the shared syntax; Mochi has no hint syntax, so hints are dropped and listed.
What happens to Obsidian scheduling comments?
They are ignored. The converter moves card content, not review history.
Can I convert a Quizlet set back to Anki?
Yes: paste the Quizlet export (tab between term and definition, one card per line) and choose Anki as the target.
Does it work for Lessonleaf and Deckwright?
Yes. Their shared card syntax is one of the six formats, read by the same parser as Deckwright's Study view.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://flashcardformatconverter.usefulweb.app/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://flashcardformatconverter.usefulweb.app/mcp· tool nameflashcard_format_converter
Example request
curl -s -X POST https://flashcardformatconverter.usefulweb.app/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"text":"# Spanish\nhola :: hello\ngracias ::: thank you\nQ: How do you say \"good morning\"?\nA: buenos días\n\n# Biology\nThe {{c1::nucleus}} stores the {{c2::DNA::molecule}}.\n","to":"anki"}'