Based on 20 ratings:
Sign in to rate
< Back

Media Import

0.01MB. Updated 2015-05-11.


Import media files as new notes. This add-on will allow you to import media files into your Anki collection and use their file names as a component of the note. You can create cards that might look like this (using apple.jpg): When the add-on is installed, a Media Import... option will be added to the Tools menu. Selecting this menu item will open the Media Import window. From this window, you are able to: - Browse and select which folder to use as the source of media files - Choose which note type to use for the imported notes - Decide what content to put into each of the fields Here is a list of the content available to insert into fields. We will use an example file named apple.jpg. - Media - The media file itself (image or audio will appear on the card) - File Name - The name of the file without the extension (apple) - File Name (full) - The name of the file including the extention (apple.jpg) - Extension - Only the extension of the file (jpg) - Sequence - A number indicating the order in which the file was imported. If 15 files were imported, each file will contain a value starting from 0 to 14. All new notes are added to a deck named MediaImport. This deck is created for you automatically if it doesn't exist. If you would like to report an issue or offer contributions, please see the add-on's github page. Current version: 2.2 Changes in 2.1: - Fixed bug where no cards are generated if you don't select a note type (and use the default). Changes in 2.1: - Fixed bug where you couldn't use a non-ascii path Changes in 2.0: - Added user interface to allow selection of note type and field mapping Changes in 1.3: - Improved error handling if no cards generated Changes in 1.2: - Fixed several issues with non-English file names on Windows Changes in 1.1: - Fixed unicode conversion error (thanks to commenter below)


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into the desktop program:

If you were linked to this page from the internet, please go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

Ask a Question

Write a Review

Created Duplicates
Posted on 2016-11-22

I love this feature, if it weren't for the fact that it creates duplicates every time! I have two of the same card every time I import and they both get deleted if I try to delete one of them

nice feature, but lacks one point
Posted on 2016-09-29

this is nice, indeed. But it lacks the same point as anki itself for media import. It does not rename the imported files. This might get troublesome, if you have asian (etc) sign inside your filenames, as that might mess up your anki-sync.

Awesome App
Posted on 2014-08-07

Very useful and time saving for me. The only Issue I face is that I cannot change the card type after it has been imported. It would be nice if I could change the individual card types according to my needs. Please make it possible. Thanks in advance

same problem
Posted on 2014-07-12

I have the same problem when selecting the folder with the pictures:

Traceback (most recent call last):
File "C:\Users\manuel\Documents\Anki\addons\", line 65, in doMediaImport
note['Front'] = exp
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 101, in __setitem__
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 95, in _fieldOrd
KeyError: 'Front'

I'm using Windows 7. What is this cygwin by the way. Could I solve the problem by installing it?

Thanks a lot.

Useful if it worked
Posted on 2014-06-28

I always get this error:

Traceback (most recent call last):
File "C:\Users\user\Documents\Anki\addons\", line 65, in doMediaImport
note['Front'] = exp
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 101, in __setitem__
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 95, in _fieldOrd
KeyError: 'Front'

Btw.: C:\cygwin\home doesn't exist on my computer...

Problems with character encoding
Posted on 2014-05-13

Thanks for creating this useful addon! I've encountered a bug: It won't work if the filenames contain special characters (like "ó" or "á"), it doesn't import anything. I'm on Windows 7, with the most recent version of Anki (2.0.26)

"UnicodeDecodeError: 'utf8' codec can't decode byte 0xe1 in position 7: invalid continuation byte"

after i've changed all the "special" characters, it worked fine!