NOTE: If you are using Anki pre v2.1.36, only iOS, macOS, and Linux are supported currently, Windows is supported starting with Anki v2.1.36 and AnkiDroid is supported with 2.15 (which is currently in alpha) respectively.
Closet is a unique mix between a templating engine and a markup language written in TypeScript for the generation of flashcards, especially for the use in the Anki flashcard software.
It allows to use many “effects”, that you’d like to have on flashcards, like shuffling text items, clozes, multiple choice, or image occlusions.
For more information, see first the introduction video and afterwards the website.
Updates 2022-08-09: v0.6.1:
- Additional support for Qt5 Anki (2.1.52+) and several bug fixes. Big thanks to kleinerpirat. 2022-07-15: v0.6.0:
- Support for Qt6 Anki (2.1.52+). Big thanks to kleinerpirat who helped with this! 2020-04-12: v0.5.3:
- Minor bugfix with style recipe 2020-04-11: v0.5.2:
- Minor update: Add apply recipe as better alternative to simple recipe 2020-03-13: v0.5.1:
- Introduce internals.template.(appendStyle/appendStyleAll/appendDocumentStyle) as preferred method to insert CSS documents 2020-03-12: v0.5.0 Closet CSS Update: BREAKING changes:
- The library structure changed a little bit. If you had a custom setup, you might need to update it. If questions, don’t hesitate to contact me.
- Closet now is separated into both a JavaScript library, and a default CSS file. If you insert Closet with Asset Manager, the CSS import will be automatically added to the note type. You can also add it manually via putting @import url(“__closet-0.5.0.css”); into your note type styling. This allows you to easily overwrite the default Closet styling with only CSS, which was a much asked feature.
Big changes:
- Closet now supports block tags. They’re better suited for wrapping multiple lines with tags, then inline tags, as they will automatically “consume” the two linebreaks on the side. They look like this: [[#c0]]
- Cloze going over
- multiple lines [[/c0]]
- Closet has a new algorithm to detect “meaningful content”. This allows you to wrap a list (<ul> or <ol>) with tags, and Closet will mix the list items for you. There’s no easy to show it currently, but more details will follow soon…
Other changes:
- The default setup now includes sort filters, which can be used for a kind of multiple choice question, (see here for more info)
- The tag selector in the editor now adapts to dark mode (thanks to @kleinerpirat)
2020-12-22: v0.3.0 Christmas Update: BREAKING changes:
- If you use Closet with Asset Manager, Closet will insert a new “Closet Setup” entry into it
- Simply take the code from your old setup (which is now “loose”), paste it into the new entry
- Afterwards you can delete your the old (“loose”) entry
- If you use Image Occlusion with Closet, you should be careful, when editing the occlusions:
- Make sure that the field, which is supposed to contain the occlusions has a name which is suffixed with a 0, e.g. “Cmds0”, or “Code 0”
- First turn on the occlusion editor, so that the occlusions are visible on the image
- Now delete the occlusions in the “Cmds0” field
- Now accept the occlusions on the image: it should now insert the occlusions wrapped [#!occlusions …your occlusions… #]
General:
- Support for Windows + AnkiDroid (starting with 2.15alpha17)
- By default, Closet now automatically pastes occlusions into a zero-indexed field, if it exists, rather than copying to clipboard
- This behavior can be changed in the add-on settings
- As a beta-feature, Closet now hooks on the cloze shortcut (Ctrl+Shift+C and Ctrl+Alt+Shift+C) for clozes in a Closet-style
- Add a select input in the toolbar, to configure what this shortcut outputs
- The toolbar can be set with Ctrl+1, Ctrl+2, for different kinds of tags
- The tag shortcuts respects the semantics of different tags (e.g.
[[c1::cannot be on a field without a “Code 1” field, but[[mix1::can)
Occlusions:
- The occlusion editor will refuse to turn on, if the note type does not support Closet
- You can set the max-height for images in the settings window (in percentage of the screen height)
- Right-click on images, you can resize pictures in the editor
- Trying to close the AddCards window with the occlusion editor open, will inform you to close it first
- Turning on occlusion editor will highlight the icon in the menu
- Make font size of labels dynamic to adjust to image size
2020-11-05: v0.2.3 has MathJax support in Anki
- I improved on the previous approaches, and fixed some long-standing issues, that prevented full MathJax support
2020-11-03: v0.2.2 has experimental MathJax support in Anki
- I removed most of the MathJax support, because it would lead to issues that hide the entire card from displaying in the reviewer
2020-11-02: v0.2.1 has experimental MathJax support in Anki
- To enable it, you need to reinsert Closet using Asset Manager
2020-10-24: v0.2.0 brought some crucial changes with it, which try to make the Closet experience a better one.
- Closet doesn’t need Anki Persistence installed anymore
- When opening the Asset Manager window, you will notice a script which says it’s “loose”. You can simply delete it.
- Closet is now loaded asynchronously, which will increase the performance.
Support If you like my add-ons, you can consider supporting me. My add-ons will always be freely available for everybody, but what I can offer you is my sincere thanks, and first-hand technical support, if you have any questions/issues with my add-ons. At the same time it allows me to put more time and focus into developing these and making them as powerful and user-friendly as they are. Thanks for considering!
ko-fi.com/hgiesel patreon.com/hgiesel
Screenshots



Liên kết hỗ trợ
Reviews (30)
👍 2026-01-19
not working! Versão 25.09.2 (3890e12c) Python 3.13.5 Qt 6.9.1 Chromium 122
👍 2025-09-19
Utilized it for stepwise image occlusion. Please see full review and example of how I used it here: https://www.reddit.com/r/Anki/comments/17xfpb1/comment/nf0moei/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
👍 2025-08-14
Currently on Version 24.11 for MacOS
Wasn’t able to get the current version via AnkiWeb, or the latest github release on Github for 25.0.4+ (would rather not update my Anki if I don’t have to…) Any insight on if I can get this working on 24.11?
👍 2025-05-16
Broken since new Anki update
👍 2025-05-12
IO one by one doesn’t work with the anki update. tried the other reviewers github release but that didn’t work. very sad about this :(
👍 2025-05-07
Not working with Anki update- can’t do IO one by ones
👍 2025-05-06
Im the 12-12-2023 fixer for the addon again, the addon broke in the newest anki version, so I have created a github repository where everytime the addon breaks I’ll fix it and release it in releases tab.
https://github.com/justarmadillo/Closet-for-anki/releases/tag/Releases
Good luck everyone !
👍 2025-01-27
still issue not fixed. please update
👍 2024-10-24
Still an issue with the cloze shortcut (ctrl+shift+c) and then IO one by one doesn’t work. Working with version 24.06.3 (windows)
👍 2024-09-06
Getting the same crash as the user below (2024-08-29)
👍 2024-08-29
Also getting a crash when trying to add new cards. Breaks the add on. If anyone knows a fix would love to hear it or see a link to an updated version. Debug:
Anki 24.06.3 (d678e393) (ao) Python 3.9.18 Qt 6.6.2 PyQt 6.6.1 Platform: Windows-10-10.0.22631
Traceback (most recent call last): File “aqt.webview”, line 50, in cmd File “aqt.webview”, line 160, in _onCmd File “aqt.webview”, line 689, in _onBridgeCmd File “_aqt.hooks”, line 5416, in call File “C:\Users\User\AppData\Roaming
👍 2024-07-15
For anyone who is looking for the deleted tutorials for Closet:
here is the installation video: https://mega.nz/file/QcxCTD5A#8TUrYZEKfqEW4PHiWzTdRIdTH9K9w1rfAYzD7feG6uk
and here is the website : https://web.archive.org/web/20220405224747/https://closetengine.com/
Note: I really hope everyone shares his ideas about Anki with everyone, so we can make Anki community and learning better for everyone. for myself I will be committed to fix Closet addon for the upcoming anki versions (I’m the 12-12
👍 2024-06-07
The tutorial video and the website are not available anymore
👍 2024-05-21
throws an error when adding new cards.
👍 2024-02-14
Thanks a lot “2023-12-12” for fixing this, I had one more problem other than the error and it’s all fixed now, You deserve nothing but happiness, thanks a lot.
👍 2023-12-12
I’ve fixed the errors, The addon now works perfectly with Anki 23.10.1+ Qt6 (I’m not the main developer) you can install it manually via this zip:
https://mega.nz/file/t00hSDwY#WCJjIYpkdK0fyOMEoZ4Z8WuLhywgXmG0NaeJUXAjaWs
👍 2023-07-20
continuous errors coming up in Anki. Hasn’t been updated for a while. Otherwise good addon, but the error is driving me nuts
👍 2023-07-09
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.6
👍 2023-06-14
With the addition of linking closet to the cloze shortcut (Ctrl + shift +C) it causes an error message when making a new note and stops io one by one from working. if there is a way to unlink this it would be a great addon :(.
👍 2023-05-10
for all the whiners complaining about no instructions:
https://web.archive.org/web/20220405224747/https://closetengine.com/
👍 2023-04-05
Best ever. Please re-launch the website!!
👍 2023-03-16
I wish there were a hotkey or a shortcut i could press to “reveal next” or “toggle all” as clicking w my mouse is tedious
👍 2023-01-05
This add-on is essentially dead since it’s impossible to figure out how to get it to work/what it does, precisely:
a. There is no documentation on the add-on’s page here on Ankiweb
b. The links to documentation on external sites are broken
👍 2022-12-17
Thanks for the addon. Looks like your website is down, or the link in the description is broken.
👍 2022-09-28
I use [[mc0::]] for mixing answer choices but how do I use make a list show in a randomized order and the back fixes the order?
👍 2022-08-17
Gives error when adding a new card and pointing to this addon
👍 2022-08-16
Thanks for fixing the error ""When loading ‘Closet for Anki’… ModuleNotFoundError: No module named ‘PyQt6’”.
Hopefully this good review balances out the bad one. I thought it’s much more likely that bad reviews are read than good reviews. Might be a good idea to set up a github or something so people can post errors, especially since it looks like quite a few people are getting a lot out of this addon.
Thanks for the hard work!
👍 2022-08-14
one of the best add-ons!!
👍 2022-08-10
This add-on is really useful. I’ve been using for ages. Although it stopped working on qt5 and qt6 since yesterday, I’m not going to give a bad review just for that. The developer is already aware of the problem and is working to fix it.
https://github.com/hgiesel/closet/issues Comment from author Update: It works for both qt5 and qt6 now :)
👍 2022-08-10
Been checking back for updates on this add on for the IO one by one note type. Today’s update states it is compatible with 2.15+ but I still get an error