viewhack

Anki deck viewer: open an .apkg without Anki

Drop a shared deck (.apkg) or a whole collection backup (.colpkg) and see what is in it: the decks and subdecks with their card counts, each note type with its fields and card templates, every note in a table you can search with its pictures and sounds, and the front and back of each card. Save any note type as CSV, or all the media as one ZIP.

The deck is read by this tab on your device. It is not uploaded, and nothing in it is sent anywhere.

What it shows

What this cannot do

Useful to know about .apkg files

It is a ZIP with a database inside
An .apkg is an ordinary ZIP. Inside is an SQLite database of the notes and cards, a file called media that maps numbered files to their real names (0 is cat.jpg, 1 is gato.mp3), and the numbered media files themselves. A .colpkg is the same thing holding a whole collection, which is what Anki's “Export collection” and its automatic backups write.
Three layouts, one of them a decoy
Anki 2.0 named the database collection.anki2; Anki 2.1 wrote collection.anki21. Since Anki 2.1.50 (2022) the database is collection.anki21b, compressed with Zstandard, the media list is a compressed binary list and every media file is compressed too. Those packages still contain a collection.anki2, but it holds a single note reading “Please update to the latest Anki version, then import the .colpkg/.apkg file again.” for old importers. Tools that only read collection.anki2 show that one note instead of your cards; this page picks the newest collection and says when it skipped the decoy.
Fields, notes and cards
A note holds the fields (Front, Back, or whatever the note type defines), stored in one text column separated by the invisible character U+001F. Each card template of the note type makes one card from the note, so a “Basic (and reversed card)” note gives two cards; a cloze note gives one card per {{c1::…}}, {{c2::…}} number. That is why the card count is usually larger than the note count.
Shared decks usually carry no history
When you export a deck, Anki asks whether to “Include scheduling information”. Shared decks on AnkiWeb are almost always exported without it, so every card is new; a collection backup (.colpkg) always has it. Review dates are stored as day numbers counted from the day the collection was created, which is how this page turns them into dates.
Getting a CSV out of Anki itself
With Anki installed, File › Export › “Notes in Plain Text” writes a tab-separated file. It needs the deck imported first, which merges it into your collection; here the deck stays untouched and the CSV takes one click per note type.