Create Decks from Tag-Hierarchy

AnkiWeb addon 84261342

Builds a deck hierarchy mirroring a selected tag hierarchy, moves matching cards into corresponding sub-decks, supports custom names and parent decks, and leaves tags unchanged.
AI-generated summary; may contain mistakes.

taggingdeck-management

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-08-20
Anki versions
2.1.1~
License
AGPL-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

active

  • Last update or commit: 2026-08-20 (73 days before the snapshot).
  • Commits in the last year: 5.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

GitHub

Repository
dariores/anki-tag-to-deck Β· more by dariores
Stars
⭐ 0 · forks 0 · open issues 0
Last commit
2026-08-20
License
A license file that GitHub does not recognize
Languages
Python
Tests
0

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-08-20
History across monthly snapshots

Loading…

Similar addons

Tag_to_Decks

Creates a deck and subdecks from a selected tag and its subtags, moving matching cards into alphanumerically ordered subdecks and showing progress during deck creation.

note-managementtaggingdeck-management

9 votes 45% approval πŸ‘ 7 Β· πŸ‘Ž 2 Anki 25.02.7~ Updated 2025-09-26
Convert Subdecks to Tag Hierarchy

Converts a selected deck's subdecks into hierarchical tags by moving their cards, with options to merge into one master deck or keep subdecks and configure name separators.

taggingdeck-management

30 votes 70% approval πŸ‘ 26 Β· πŸ‘Ž 4 ⭐ 10 Anki 2.1.57~ Updated 2023-02-07

Description

Automatically builds a deck hierarchy that mirrors an existing tag hierarchy β€” with a custom deck name and target parent deck.

--

Description

Build a deck hierarchy from a tag hierarchy

Anki uses the same separator (::) for both tags and decks to represent hierarchies. If you organize your cards mainly through tags, you'd normally have to recreate the matching deck structure by hand. This add-on automates that step.

Features

  • Pick any (nested) tag as the starting point.
  • Automatically creates a main deck plus all matching sub-decks mirroring the tag structure.
  • Choose a custom name for the main deck.
  • Optionally nest the new deck structure under an existing deck.
  • Searchable pickers for both tags and decks (substring search, not just prefix matching).
  • Cards are automatically moved into the matching deck.
  • Tags are left untouched β€” only card-to-deck assignment changes.
  • Configurable behavior for notes with multiple matching tags and for empty sub-decks.

Usage

Tools β†’ "Build deck hierarchy from tags…" β†’ choose tag, deck name, and optionally a parent deck β†’ OK.

Feedback, bug reports and suggestions welcome via the support page (GitHub) or as a comment here on AnkiWeb.

README

Tag to Deck Hierarchy

An Anki add-on that builds a deck hierarchy from an existing tag hierarchy and moves the matching cards into the correct sub-decks. Disclaimer: This tool was quickly coded with Claude Opus 4.8. It is a very useful tool to me and some of my study-buddies, thats why I thought I'd share. :)

AnkiWeb listing: (add the link here once published)


Why?

Anki uses the same separator (::) for both tags and decks to represent hierarchies. If you organize your cards mainly through tags (e.g. Medicine::Neurology::HSP) but want a matching deck structure for studying β€” say, to drill a specific sub-topic or see per-topic statistics β€” you'd normally have to search for and move cards by hand. This add-on automates that step.

Features

  • Pick any (nested) tag as the starting point.
  • Automatically creates a main deck plus all matching sub-decks mirroring the tag structure.
  • Custom name for the main deck, independent of the tag name.
  • Custom parent deck β€” nest the new structure under an existing deck.
  • Searchable pickers: typing filters tags/decks with a "contains" match, not just a prefix match.
  • Automatically moves the cards of matching notes into the correct (most specific or topmost β€” configurable) deck.
  • Optionally creates empty sub-decks too, so the structure fully mirrors the tag hierarchy.
  • Tags are never changed or deleted β€” only card-to-deck assignment changes.

Usage

  1. Tools β†’ Build Deck Hierarchy From Tags…
  2. Pick or type the source tag (e.g. Medicine::Neurology).
  3. Set a name for the new main deck.
  4. Optionally pick a parent deck under which the new structure should be nested.
  5. Click OK β€” the decks are created and the cards moved accordingly.

Settings

Via Add-ons β†’ Config for this add-on:

Option Default Meaning
assign_to_most_specific true If a note has several matching tags: move its cards to the most specific (deepest) matching deck instead of the topmost one.
create_empty_decks true Also create sub-decks that don't currently have any cards, so the structure is complete.

Compatibility

Tested with current Anki desktop releases (Qt6 backend). Requires the modern CollectionOp API (Anki >= 2.1.45).

License

AGPL-3.0, same as Anki itself.

Contributing / Reporting bugs

Issues and pull requests are welcome: (https://github.com/dariores/)