Anki has three file types you’ll meet, plus automatic backups.
| File | Contains | Use it to |
|---|---|---|
.apkg (deck package) |
One or more decks, their media, optionally your review history | Share a deck, or import one someone shared |
.colpkg (collection package) |
Your entire collection: every deck, all media and history | Move everything to a new computer, or keep a full backup |
.csv / .txt |
Plain text, one note per line | Turn a spreadsheet or word list into cards |
Importing
Double-click the file, or use File, Import in Anki. For deck packages, keep Import any deck presets ticked so the deck’s settings come in too. See importing a deck for phones.
Be careful with .colpkg files: importing one replaces your whole collection. Only do this when that’s what you want.
From a spreadsheet
- Save your sheet as CSV, with one column per field (for example, Word and Meaning).
- In Anki, File, Import, choose the file.
- Pick the note type and deck, and match each column to a field.
- Click Import.
Exporting
Choose File, Export, then the format:
- Anki Deck Package (.apkg) for one deck. Untick “include scheduling information” if you’re sharing it, so others start fresh.
- Anki Collection Package (.colpkg) for everything.
- Notes in Plain Text to get your cards into a spreadsheet.
Backups
Anki backs up your collection automatically while you use it, and AnkiWeb sync gives you an online copy too. You can also make one on demand with File, Create Backup.
To restore: File, Switch Profile, Open Backup, then choose a date. This replaces your current collection with that backup, so if you sync, choose to upload afterwards so your other devices get the restored version.
Before big changes (a new add-on, mass edits, switching to FSRS with rescheduling), make a backup first. It takes seconds.