File formats
Every input we accept and how it's read.
This is the full list of inputs 2anki accepts. The hard limits live on Limits and quotas — this page is the format reference.
Plan: Free (any plan can upload any format; paid plans get bigger files and AI-generated cards)
| Format | How 2anki reads it | Limits | Notes |
|---|---|---|---|
Notion HTML export (.zip) | Each .html file inside becomes a deck. Toggles inside the file become cards. The assets/ folder is bundled into the deck. | Same size limit as any upload. | The .zip Notion gives you when you export with "HTML" + "Include subpages". The cleanest non-Notion-integration path. |
HTML (.html) | Each <details> block becomes a card — <summary> is the front, the rest is the back. <code> becomes cloze. <strong> becomes input (with the Treat Bold Text as Input option on). | Same size limit as any upload. | Hand-written HTML works the same way. See HTML. |
Markdown (.md) | Bullet pairs become cards: parent bullet is the front, child bullet is the back. Backticks become cloze. | Same size limit as any upload. | Requires the Markdown Nested Bullet Points card option (on by default). Obsidian vaults work the same way. See Markdown and Obsidian. |
ZIP (.zip) | Extracted; the contents are processed in place. Notion HTML exports, folders of HTML files, or mixed bundles all work. | Same size limit as any upload. Entries are checked for unsafe paths before extraction. | If you have a Notion export with images, keep it zipped — the assets stay attached. |
CSV (.csv) | One row per card. The first column is the front, the second is the back. | Same size limit as any upload. | Use commas as the separator. TSV (tab-separated) is not supported — convert to CSV first. |
XLSX (.xlsx) | Same as CSV but for Excel files. First column front, second column back. | Same size limit as any upload. | One sheet per deck. |
PDF (.pdf) | A PDF that is mostly text becomes one card per heading: the heading is the front, the text under it is the back. When 2anki can't make cards that way — a scan, slides with little text or a picture on every page, or text that would split into lots of tiny cards — the upload page asks what the cards should be: Two pages per card, One card per page (you add the answers in Anki), or, for one file on a paid plan, Make cards with AI. | 100 pages on free when pages become image cards; no fixed cap on paid. | Turn on Extract text from PDFs in the card options to get one card per heading from slides with text. On a paid plan, turn on Generate flashcards with Claude AI and Claude writes the questions instead. Two pages make one card always makes 2-page image cards without the question; it wins over Extract text from PDFs, and over Generate flashcards with Claude AI when you upload only PDFs. |
PPT / PPTX (.pptx, .ppt) | One card per slide. The slide title is the front; an untitled slide uses its first line with words, not the slide number, date, footer, or header. A picture slide with no other text shows the slide image as the question. The bullet points, the rendered slide image, and the speaker notes are the back, plus the slide number, date, and footer on slides with no bullet points or notes. A deck whose slides carry no text at all becomes image cards instead: slide 1 is the front, slide 2 the back, and so on. | 100 slides on free, no fixed cap on paid. | Put the question in the slide title and the answer in the body or notes. Older .ppt files always make those image cards — save them as .pptx to get one card per slide. Keep Embed images in cards and Process PDF files on (the default) in the card options: with either off, the cards lose the slide image, and an untitled slide can show its slide number, date, or footer as the question. |
Word (.docx) | Each heading in the document becomes a card: the heading is the front, the text under it is the back. A list under a heading, or 4 or more short paragraphs, becomes one card per item instead, with the heading and a count (Heading — 1/3) on the front. With Overlapping cloze on, a list becomes cloze cards, one per item, each hiding that item, and short paragraphs stay together on one card. | Same size limit as any upload. | Use Word's heading styles (Heading 1, Heading 2) for the questions. 2anki can't read older .doc files — save them as .docx first. Prose-heavy documents do better with Generate flashcards with Claude AI on a paid plan. |
OPML (.opml) | Each parent→child outline relationship becomes one Basic card: the parent text is the front, the child text is the back. | Same size limit as any upload. | Export from OmniOutliner, iThoughtsX, or any outliner that supports OPML. |
Brainstorms JSON (.brainstorms.json) | Same parent→child edge rule as OPML — each edge becomes one Basic card. | Same size limit as any upload. | Export from Brainstorms (iOS/macOS) using the JSON export option. The file must end in .brainstorms.json. |
HTML and Markdown
HTML and Markdown have their own pages because the syntax for cloze and input cards is worth a couple of examples each:
- HTML — toggles, cloze, input, and how images travel with the deck.
- Markdown and Obsidian — bullet syntax for basic, cloze, and input cards.
For the format-by-format pitfalls users actually hit, see Common problems.