Importing .anki (old anki 1) files

AnkiWeb addon 175027074

Enables importing legacy .anki decks from Anki 1 by running a bundled copy of the old importer, recommending an Anki restart afterward.
AI-generated summary; may contain mistakes.

import

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
7 (πŸ‘ 5 Β· πŸ‘Ž 2)
Updated
2022-10-07
Anki versions
2.1.55~
License
GPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, C, Handlebars, Batchfile
Description language
en

Maintenance

abandoned

  • Last update or commit: 2022-10-07 (1486 days before the snapshot).
  • Test files: 10.
  • Commits in the last year: 0.
  • Issues: 2 open, 1 closed.
  • Pull requests: 0 open, 1 merged.
  • Median first response: 14 hours (5 answered issues and pull requests).
  • Outside pull requests: 50% of 2 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.342020-05-04
2.1.352.1.402020-12-22
2.1.412.1.482021-08-20
2.1.49–2021-12-09
2.1.502.1.55+2022-10-07
History across monthly snapshots

Loading…

Similar addons

JPDB Anki Importer

Imports JPDB Japanese word review history into Anki, including spelling, reading, and simulated answer history, with optional scraped definitions, custom sentences, and notes.

card-creationimportscheduling

4 votes 51% approval πŸ‘ 4 Β· πŸ‘Ž 0 ⭐ 16 Anki 24.11~ Updated 2025-02-27
Multi Deck Importer

Batch-imports multiple .apkg deck packages from files or folders, with optional recursive scanning, zip support, automatic backups, collection-package skipping, progress reporting, and configurable Anki import options.

importbackup-maintenance

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 Anki 25.09.2~ Updated 2026-05-07
Zzz (legacy) No Sound Debug

Helps debug missing audio by configuring mpv to write a log file, preventing restarts from creating new logs, and guiding users to inspect or share that log.

bugfix-workarounddeveloper-tools

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 Anki 2.1.30~ Updated 2020-08-20
Study-Review Deck

Adds Study and Review buttons per deck to separate new-card study from due-card review, plus a Wrap Up button that clears new cards so the session can finish.

review-flowdeck-management

7 votes 65% approval πŸ‘ 7 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.61~ Updated 2024-07-16

Description

Allow to import .anki files (anki 1 files).

README

Import .anki files

Rationale

A long time ago, there was Anki 1. It used a file format called ".anki". Very different from today's Anki2's ".anki2" format. You can still find on the web some old decks, shared a decade ago, in this format. This add-on allow to import them.

Warning

You should probably restart anki once you're done importing data. Importing .anki data essentially starts a copy of anki 2.0 which itself starts a copy of anki 1.0; that's not things you want to keep running and potentially interfering with your normal study. I can't guarantee there won't be any interference (especially in hooks)

Internal

The only new code is in aqt/importing.py, where I change the "onImport" function in order to deal with ".anki" file. If importing such a file is requested, it will import anki/importing/__init__.py, which itself will add all the required codebase. It essentially is a copy of the backend code and anki1 code, as it was before this feature was removed in all https://github.com/ankitects/anki/commit/1dce3eaaff649e2c1dbfd53bfe289cf42971045e#diff-c60e37732e601ec3d7f7e7146624b3a1 .

Technical

My best guess is that anki 1 was in python 2. Dropping the importer ensured that the code didn't have to be porter to python 3. I'm not certain, because tools exists to do the port.

Anyway, to get code from anki 1, anki 2.0 did used anki1 code to compute all cards. It actually simply opened this file as a collection and then used the function which ports collection from 1 to 2.0. I believe that there was no difference between decks and collection in anki 1; which might explain why it used anki 2.0 can import a deck and consider it as a collection.

TODO

Remove all part of the code not actually useful for anki

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU GPL, version 3 or later; http://www.gnu.org/licenses/gpl.html
Source in https://github.com/Arthur-Milchior/anki-import-anki1-files
Addon number 175027074