This add-on allows you to export the deck into an HTML file.
Export to HTML
The HTML template file can be found HTML template
For each field that you want to export, just put it in this format {{field_name}} like in the template. That placeholder will be replaced by field value.
You can config the style in the \<style\> tag.
The \<table\> tag is optional, but it helps to make the result HTML more pleasant to read.
Export to PDF To convert the html to pdf, wkhtmltopdf must be installed on your system.
Convert to multiple formats
Click on Advanced mode and select a CSV file to convert into multiple formats. The template can be found here
Save setting The setting can be saved to use multiple times.
Liên kết hỗ trợ
Reviews (29)
👍 2025-08-19
cannot runing
👍 2024-07-15
Can’t work on verson 24.06.2
👍 2024-01-06
very goodful!
👍 2023-07-06
HTML Template not available
👍 2023-05-21
HTML Template is not available
👍 2022-08-19
HTML Template is not available
👍 2022-07-19
good to use
👍 2022-04-23
For those having a problem with some fields merging during the export, change
fields = re.findall(”{{.*}}”, template)
to
fields = re.findall(”{{.*?}}”, template)
in ExportDeckToHtml.py located in “AppData\Roaming\Anki2\addons21\1897277426”
(then restart Anki)
👍 2022-01-12
A brilliant add-on, but one slip-up is that it can’t export in created order, which is kind of like a huge drawback!
👍 2021-12-12
Thank you so much! this is really helpful.
👍 2021-09-24
it’s awful
👍 2021-09-16
i think this is a good add-on, however, i enjoyed the operation older, when i export cups of cards, i can easily fill in the CSS adn HTML, by my hand not by the format for i have to choose. could you let it back
👍 2021-09-12
How I can use this ADDon ??
👍 2021-05-02
Is there a way to make Mathjax work with this? Currently text comes out unformatted
👍 2021-01-25
Works great, thank you!
👍 2020-10-27
How do I get the output as an HTML table, cause I cannot use table tag for each iteration ?
👍 2020-09-23
Errored
👍 2020-07-30
Does anyone know how I can export the cards in the order of their created date? What line in the code do I need to change?
👍 2020-07-05
Works fine, Thanks for sharing.
For others who are interested in a solution for the image with text bug, and the error that happens sometimes which is caused by multiple card types in the same deck, I edited the add-on to solve these issues,
and successfully exported multiple decks that have both basic and cloze cards with images and text in the same field,
To export a deck with multiple card types, edit the HTML Template with all possible field names separated by ”//”, e.g. the below templ
👍 2020-06-27
Very good function, there is currently a bug, when there are pictures and text in the field, the text will be lost when exporting.
👍 2020-05-02
Really useful! Took a minute of tweaking for it to accept my extensively modified cards. Biggest issue right now is that if the field has text and image, only the image appears in the HTML. Seems like this would be a problem for fields with multiple images too. Possible to fix? Thanks!! (Wishlist item would be separate HTML file for notes with the same card ID.)
👍 2020-04-14
Very helpful!!! Thank you so much. This is the add on I took lots of time to find.
Only 1 problem - when there are images in the field, the exported HTML only included the first image, no text. Could you please check if it is a common problem?
👍 2020-03-10
It Works!
👍 2020-02-23
Didn’t work for me. I suspect the issue may be multiple note models in the Deck?
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, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please
👍 2019-11-15
可以工作的,需要把同一笔记类型放在一个牌组中!但如果输出的内容中存在音标,会报错,如下:
调试信息
Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 7
Flags: frz=True ao=True sv=1
Caught exception:
File “C:\Users\wangcb\AppData\Roaming\Anki2\addons21\1897277426\ExportDeckToHtml.py”, line 199, in _on_accept
f.write(str(template_before.replace(“{{main_style}}”, str(self.textbox.toPlainText())) + edited_template + template_after))
<class ‘UnicodeEncodeError’>: ‘gbk’ codec can’t encode character ‘\u026a’
👍 2019-06-27
A good idea,but this add-on doesn’s work.
so sad…
2019-06-27
I can export my card’s title,
but other fields still fail
Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1
Caught exception:
File “C:\Users\Administrator\AppData\Roaming\Anki2\addons21\1897277426\ExportDeckToHtml.py”, line 199, in _on_accept
👍 2019-06-10
Dosn’t works
👍 2019-04-20
It’s not work, correctly.
👍 2019-02-26
I met an error. May the error related to chinese?
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, repeating 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-on