How to export flashcards from Anki
Anki exports flashcards as TXT. You can export your own decks and shared decks from other users. Follow the 3 steps below — or scroll down to download a sample export file.
Platform: Desktop (Windows / Mac) / AndroidOwn decks: YesOthers' decks: YesTXT
Step-by-step guide
- Open deck optionsOpen Anki and find your deck. Click the gear icon next to the deck.

- Select exportFrom the dropdown menu, click Export.

- Export fileIn the export window, keep or adjust the export settings, then click Export... to save the file.

Sample export file
Real sample export from Anki containing 5 English → Spanish flashcards. Inspect the format before exporting your own data.
Get Anki
Convert your Anki export to Excel or PDF
Anki exports as a plain TXT file. It does not export Excel (XLSX) or PDF directly, but you can convert the TXT in a few steps:
TXT → Excel
- Open Excel and choose Data → From Text/CSV (or just open the .txt file).
- Pick the delimiter your export uses — usually Tab or Comma.
- Confirm, and your cards land in two columns. Save as .xlsx.
TXT → PDF
- Open the .txt file in any text editor or browser.
- Choose Print and select Save as PDF as the printer.
Frequently asked questions
What file format does Anki export to?
Anki exports your flashcard data as TXT.
Can I export my own decks from Anki?
Yes, you can export your own decks from Anki. See the step-by-step guide above.
Can I export shared or other users' decks from Anki?
Yes, Anki allows exporting shared or other users' decks.
On which platforms is Anki available?
Anki is available on Desktop (Windows / Mac) / Android.
Is there a sample export file I can download?
Yes. A sample export file is available on this page. It contains 5 example flashcards (English → Spanish) so you can inspect the exact format Anki produces before exporting your own data.
Can I export Anki to Excel?
Not directly — Anki only exports TXT. But you can open that TXT in Excel via Data → From Text/CSV, choose the delimiter (Tab or Comma), and save as XLSX. See the conversion steps above.
Can I export Anki to PDF?
Not directly. Open the exported TXT file, choose Print, and select “Save as PDF” to get a PDF version.
Related export guides
Anki is a trademark of its respective owner. This page references the app for informational purposes only and is not affiliated with, endorsed by, or sponsored by the makers of Anki. All screenshots are used under fair use to illustrate the export process.