Collection.anki2 vs collection.anki21?

I was trying to access the *.apkg sqlite database with python, and noticed when opening it as a *.zip that there’s both a collection.anki2 and collection.anki21 file. Can I just use the *.anki21 file and ignore the other?

The doc page says for user profiles, “Your notes, decks, cards and so on in a file called collection.anki2.”

Just wanted to understand if there’s any other dependency between the two files or if it’s fine for me to just use the *.anki21 file.


Please see Command-Line Use - Writing Anki Add-ons

1 Like

(to read an .apkg file, you can create an empty collection and then call col.import_anki_package())

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.