Export cards selected in the Browser

AnkiWeb addon 1983204951

Exports selected browser cards as packages, optionally including sibling cards from the same notes, with a Ctrl+Shift+E shortcut and configurable sibling handling.
AI-generated summary; may contain mistakes.

exportobsolete

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
16 (👍 14 · 👎 2)
Updated
2020-02-03
Anki versions
<=2.1.19
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, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2020-08-02 (2282 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 0 open, 6 closed.
  • Pull requests: 0 open, 1 merged.
  • Median first response: 5 hours (7 answered issues and pull requests).
  • Outside pull requests: 100% of 1 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.192020-02-03
History across monthly snapshots

Loading…

Similar addons

Flag Notes

Attaches short notes to flagged cards during review, shows them as banners, and provides a viewer with browser integration, professor responses, and CSV/Markdown export.

exportreview-flownote-managementshortcuts

1 votes 0% approval 👍 0 · 👎 1 Anki 2.1.1~ Updated 2026-04-21
Print Selected Cards

Exports selected cards, decks, or tags to a printable HTML file showing both card sides, with media and LaTeX support, for printing or saving as PDF.

exportshortcutsfork-or-reupload

2 votes 9% approval 👍 1 · 👎 1 Anki 26.05~ Updated 2026-07-07
𝕾 Selected Notes to Structured Text (for LLMs)

Exports selected Anki notes as LLM-friendly structured text—copyable or saved—preserving field contents unchanged while including note type, deck path, and optionally tags.

export

2 votes 34% approval 👍 2 · 👎 0 ⭐ 3 Anki 26.09~ Updated 2026-08-24

Description

I added this feature to anki's code. The add-on became useless in 2.1.20. Thanks for the thousands of download. It remains here only for people who does not update anki regularly. Allow you to select cards in the browser and export them. WARNING: A previous version of the add-on exported all decks. If you used this add-on before 2020-feb-02 then the .apkg files you shared contains your entire list of decks, even when they were not imported.

README

Export cards selected in the Browser

Rationale

Sometime, I want to export only some notes. And the cards are not all in the same deck. I wanted to be able to just select cards in the browser and export them. Thus, this add-on is here.

Another problem with anki's exporting system is that it exports cards, and not notes. Image that you have a card in a deck, and its sibling (other card of the same note) in another deck. And that you export the deck of the first card. Only the first card will be exported. Now, if you import the exported package, Anki will eventually detect that some siblings are missing, and will generate those as new cards. Thus the entire review history of the siblings will be missing. Personnally, I prefer to export siblings, even if it means exporting more than a deck. But since people may disagree, this option is configurable.

Warnings

Bug in deck exported before 2020-feb-02

A previous version of the add-on add an hidden bug. When you exported cards selected in the browser, the file you obtained contained information about ALL decks. Even the decks unrelated to any card you selected.

This create no bug when you imported those cards, since those decks without cards were ignored by Anki. However, it means that those deck contained extra information they were not supposed to contains. It contained the list of all of your decks, and this can be read by any people knowing how to read database content.

I assume and hope that this was not a security problem for anyone, and that no "list of decks" contained sensitive information. But if your list of deck did contain sensitive informatio, I beg your pardon and you should ensore those shared decks are not publicly shared anymore.

Special field add-on

Currently, this add-on is not compatible with "special field" add-on. This will change in the future, I sent a correction to the other add-on, I can't do more immediately.

Usage

Open the Browser, select the cards you want to export. Then go to Edit>Export selection (Ctrl+Shift+E), and the standard exporting window will open, but with a new options: "Browser's selection". Keeping this option, you can export your selection as you exported decks.

Configuration

You can ignore this section. Unless you really want to export cards without their siblings in package/exporters installed by other add-ons, default should be okay.

"siblings": A mapping stating, for each kind of export option, whether you want that cards are exported with their siblings (other cards from the same note).

  • null means that you use the "default" setting.
  • true means that, when you export a card, you export their siblings.
  • false means that you can export cards without their siblings.

The entry of the "siblings" mapping are keys of exporter, or the constant "default". To control exporter created by other add-on, check their code to find their "key" value, and add it to this mapping. The default values are:

  • "default": the default value, when no other are used.
  • "Notes in Plain Text": exporting notes as txt files.
  • "Cards in Plain Text": exporting cards as txt files.
  • "Anki Deck Package": exporting a .apkg file If another exporter is added by an add-on, add its key to this mapping

"Anki 2.0 Deck" is not listed. Indeed, when the entire collection is exported, this parameter becomes useless.

Internal

This add-on change

  • in aqt.exporting, the method ExportDialog.__init__. The new method calls the previous version of the method.
  • in aqt.exporting, the methods ExportDialog.setup, ExportDialog.accept. The new methods do not call the previous version of the method.
  • in anki.exporting, the method Exporter.cardIds is modified. The former version of the method is called if the exporter is called from the browser with a non-empty selection.
  • in anki.exporting, the method Exporter.__init__ is modified. The former version of the method is called.
  • in anki.exporting, the method AnkiExporter.exportInto is redefined, not calling the previous version. This change is used to decide which decks are changed. This change is sent to Anki in a (pull request)[https://github.com/ankitects/anki/pull/434].

Version 2.0

Sorry, but no such version, unless someone wants to pay for it.

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Debugged by ijgnd
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-export-from-browser
Addon number 1983204951