Anki Deck Audio Extractor

AnkiWeb addon 2104311619

Extracts audio from Anki packages, decks, or selected cards into a folder, with readable field-based names, study-order numbering, optional playlists, and spreadsheets.
AI-generated summary; may contain mistakes.

export

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
3 (👍 2 · 👎 1)
Updated
2026-11-17
Anki versions
26.09.4~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-11-17 (14 days before the snapshot).
  • Test files: 2.
  • Commits in the last year: 7.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 7 merged.
  • Outside pull requests: 100% of 7 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.5026.09.4+2026-11-17
History across monthly snapshots

Loading…

Similar addons

Audio Extractor from selected Cards

Batch-exports audio from selected cards by scanning all note fields for sound references, copying files to a chosen folder with optional numeric prefixes and duplicate prevention.

export

1 votes 21% approval 👍 1 · 👎 0 Anki 2.1.1~ Updated 2026-04-13
Anki→UWorld ID (Created by drgmb)

Extracts UWorld question IDs from AnKing v11 and v12 card tags, deduplicates and groups them by Step for preview and copying, with deck- and browser-based extraction.

exporttaggingsearch

1 votes 21% approval 👍 1 · 👎 0 ⭐ 1 Updated 2025-11-17
Anki Markdown Notes

Imports and exports Markdown notes as Anki cards, converting Q/A entries into basic or reversed cards and mapping folders to decks.

card-creationimportexport

1 votes 0% approval 👍 0 · 👎 1 ⭐ 38 Anki 2.1.41~ Updated 2021-03-14
Youtube Audio Miner

Stores YouTube videos in a searchable sentence database, adds matching audio, sentences, and screenshots to existing cards, and creates Subs2SRS decks from videos or playlists.

card-creationimportdeck-management

2 votes 34% approval 👍 2 · 👎 0 ⭐ 5 Anki 2.1.16~ Updated 2022-08-28

Description

Version 1.5.0 · Works with Anki 2.1.55 and newer · Tested on Anki 26.09.4

Having trouble? Open an issue on GitHub and include a download link to the .apkg file that's causing it: https://github.com/polywertz/anki-audio-extractor/issues

Anki Audio Extractor

Copy the audio out of your Anki decks into a normal folder. Your files get readable names, sort in study order, and can come with a playlist that plays them in the same order.

On this page: Installation · Quick start · Three ways to start · Features · The export options · Compatibility · Support

Installation

  1. In Anki, go to Tools → Add-ons → Get Add-ons…
  2. Paste the code from the top of this page.
  3. Restart Anki.

Quick start

Video Demo: https://x.com/polywertz/status/2122553740465201636/video/1

  1. Go to Tools → Extract Audio from Package and pick an .apkg file.
  2. Choose an output folder, then click Extract.
  3. Click Open Folder to see your audio.

To get readable names, set Name files after to First field before you click Extract.

Three ways to start

  • A package file you downloaded: Tools → Extract Audio from Package
  • A deck you already have: on the deck list, click the gear next to the deck → Export Audio…
  • Only some cards: in the Browser, select the cards → Notes → Export Audio from Selected Cards… (also in the right-click menu)

All three open the same export dialog.

Features

Where audio can come from

  • A package file (.apkg or .colpkg). Anki reads it without importing it, so your collection stays as it is.
  • A deck in your collection. Its subdecks are included, and so are its cards that are in a filtered deck right now.
  • Cards you select in the Browser.
  • Packages in Anki's newer compressed format, the default since Anki 2.1.50.

Choosing which audio to export

  • Untick fields to leave their audio out. For example, keep the word audio and skip the example-sentence audio.
  • The file count updates as you tick and untick fields.
  • Audio types: mp3, ogg, oga, opus, wav, m4a, aac, flac, spx, webm, amr, wma, aif and aiff.

Naming files

  • Keep the original file names, or name each file after a field: 猫 (neko).mp3 instead of sapi5js-42ecd8a4.mp3.
  • Combine fields with a pattern such as {Word} - {Meaning}. If a field is empty, it's left out along with the separator next to it.
  • Add numbers (0001_, 0002_, …) so the files sort in the order you study the cards.
  • Put each deck's audio in its own folder: Japanese::Vocab becomes Japanese/Vocab/.
  • Preview Names… lists every file's new name before anything is written.

Extra files you can save

  • audio_notes.csv: a spreadsheet with each file's deck, note type, tags and fields.
  • audio_playlist.m3u8: a playlist in card order. It opens in VLC, phone music players and most other audio apps.

Safety and convenience

  • Extracted files keep their original date. From a deck or the Browser, that's the date of the file in your media folder. From a package, it's the date stored in the package: older Anki versions store each file's own date, while current Anki stores the date the package was exported.
  • When a file with the same name already exists, choose to keep both, skip the new one, or overwrite the old one. Files from the same export never overwrite each other.
  • The add-on remembers your choices for next time.
  • The export runs in the background, so Anki stays responsive.
  • Open Folder takes you straight to the files when the export finishes.
  • When you export from a deck or from the Browser, the add-on tells you about any audio the cards use that's missing from your media folder.

The export options

  • Output folder: where the audio is saved.
  • Take audio from: appears when notes have audio in more than one field. Untick a field to leave its audio out.
  • Name files after: the original name, the first field, any field you pick, or Pattern of several fields…
  • Pattern: field names in braces, for example {Word} ({Reading}).
  • Number files in card order: adds 0001_, 0002_, … to the start of each name. Files from the same note share a number.
  • Put each deck's audio in its own folder: makes a folder for each deck and subfolders for subdecks.
  • If a file already exists: keep both (hello (2).mp3), skip, or overwrite.
  • Also save audio_notes.csv: saves a spreadsheet with each file's note details.
  • Also save audio_playlist.m3u8: saves a playlist in card order.
  • Preview Names…: shows every new name, and whether that file would be numbered, skipped or replace an existing file.

Tips

  • Order you study in: turn on numbering, or save a playlist if you'd rather keep the names clean.
  • Word audio only: untick the sentence field under Take audio from.
  • A file kept its original name: either no note plays that file, or the field you chose is empty for that note.

Compatibility

  • Anki 2.1.55 and newer, including Anki 23, 24, 25 and 26.
  • Tested on Windows and macOS.

Support

  • Report a problem or ask for a feature: https://github.com/polywertz/anki-audio-extractor/issues
  • Source code: https://github.com/polywertz/anki-audio-extractor

License

MIT

README

Anki Audio Extractor

An Anki add-on that copies the audio files out of an Anki package (.apkg or .colpkg) into a folder you choose.

Works with Anki 2.1.55 and later, including packages in the newer compressed format that Anki has exported by default since 2.1.50. Tested on Anki 26.09.4.

Usage

There are three ways to start:

  • From a package file: Tools → Extract Audio from Package, then pick an .apkg or .colpkg. The package is read without importing it into your collection.
  • From a deck: on the deck list, click the gear next to a deck, then Export Audio…. Subdecks are included, as are cards currently in a filtered deck.
  • From your own cards: in the Browser, select cards, then Notes → Export Audio from Selected Cards… (also in the right-click menu).

Deck and Browser exports take audio straight from your media folder.

A dialog then lets you choose:

  • Output folder.
  • Take audio from: shown when the notes play audio from more than one field. Untick fields to leave their audio out, for example to keep word audio and skip example-sentence audio. The file count updates as you go.
  • Name files after: keep the original file names, or name each file after its note's first field or any field you pick (for example 猫 (neko).mp3 instead of sapi5js-42ecd8a4.mp3). HTML, sound tags and characters that aren't allowed in file names are removed. A file keeps its original name if no note plays it or the chosen field is empty. When a file is used by several notes, the first one in card order is used.
  • Pattern: choose Pattern of several fields… under "Name files after" to combine fields, for example {Word} - {Meaning} or {Word} ({Reading}). Put field names in braces. An empty field is left out along with the separator next to it, so a note with no meaning gives just 猫.mp3.
  • Number files in card order: adds 0001_, 0002_, … so the files sort the way you study them. For packages and decks, that's deck order, then new-card position. For the Browser, it's the order shown in the Browser. Files from the same note share a number.
  • Put each deck's audio in its own folder: Japanese::Vocab becomes Japanese/Vocab/. Audio that no note plays goes in the output folder itself.
  • If a file already exists: keep both (the new file gets a number, such as hello (2).mp3), skip it, or overwrite it. If two files from the same extraction end up with the same name, the later one always gets a number, so nothing is lost.
  • Also save audio_notes.csv: a spreadsheet with one row per file and note, listing the number, deck, note type, tags and every field as plain text. Audio in a package that no note plays is listed with empty note columns.
  • Also save audio_playlist.m3u8: a playlist that plays the files in card order, with each track titled after its note's first field. It opens in VLC, phone music players and most other audio apps, so you can keep the study order without numbering the files.

Click Preview Names… to see every file's new name, and whether it would be numbered, skipped or replace an existing file, before anything is written.

Extracted files keep their original modification date where one is known. From a deck or the Browser, that's the date of the file in your media folder. From a package, it's the date stored in the package: packages made with Anki before 2.1.50 store each file's own date, while current Anki stores the date the package was exported. Playlists and CSVs are dated when they're saved.

Your choices are remembered for next time. Reading and extracting run in the background. When it's done, Open Folder takes you to the files. When exporting from a deck or the Browser, the closing message lists any files the cards refer to that are missing from your media folder.

Install from source

Copy anki_audio_extractor_extension/ into your Anki add-ons folder (Tools → Add-ons → View Files) and restart Anki.

Tests

The tests build real packages with the anki Python package. The dialog and menu tests use aqt (Anki's interface) with Qt running offscreen, so no window opens and Anki doesn't need to be running:

pip install anki aqt pytest pytest-cov zstandard
pytest tests --cov

--cov prints line and branch coverage for the add-on. Both are at 100%.

License

MIT