PDF/HTML Exporter

AnkiWeb addon 182840143

Exports the back sides of selected cards to a standalone HTML file, preserving styling and images, ready for printing, sharing, archiving, or saving as PDF.
AI-generated summary; may contain mistakes.

export

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
3 (πŸ‘ 2 Β· πŸ‘Ž 1)
Updated
2025-12-16
Anki versions
25.09.2~
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

stale

  • Last update or commit: 2025-12-16 (320 days before the snapshot).
  • GitHub Actions workflows: 2.
  • Commits in the last year: 17.
  • Issues: 0 open, 2 closed.
  • Pull requests: 0 open, 1 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.09.2+2025-12-16
History across monthly snapshots

Loading…

Similar addons

AnkiPdffer

Exports Anki decks as print-ready PDFs or standalone offline HTML files, with customizable layouts, themes, typography, native card rendering, and an interactive image viewer.

export

14 votes 78% approval πŸ‘ 14 Β· πŸ‘Ž 0 ⭐ 8 Anki 2.1.1~ Updated 2026-06-02
Export to Html 2025

Exports Anki decks to standalone HTML files with customizable templates and CSS, embedded images, Anki search filtering, and live preview before saving.

exportformattingshortcutsfork-or-reupload

3 votes 21% approval πŸ‘ 2 Β· πŸ‘Ž 1 ⭐ 1 Anki 23.09~ Updated 2025-12-15
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
Export deck to HTML has 1 fork β†’

Exports decks to HTML files using customizable field templates and styles, optionally converting to PDF via wkhtmltopdf, bulk-converting CSV files to multiple formats, and saving settings for reuse.

export

29 votes 38% approval πŸ‘ 16 Β· πŸ‘Ž 13 Anki 2.1.21~ Updated 2022-05-17
Card to Image Exporter

Exports selected Anki cards' answer sides as high-quality PNG images in bulk, organized by deck, rendering HTML, CSS, embedded images and MathJax formulas with customizable output settings.

export

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 25.02.5~ Updated 2025-05-27

Description


Sometimes you want your Anki content outside Anki.

Export the back side of selected cards into a clean, standalone HTML file that looks almost exactly like Anki.
Perfect for printing, sharing, or archiving explanation-heavy cards.

Key features

β€’ Exports selected card backs to a single HTML document
β€’ Preserves template rendering and per-note-type CSS
β€’ Copies required images from collection.media automatically

How to use

Select cards in the Browser, run β€œExport selected cards to HTML”, then open the output in any browser.

Source code

GitHub: https://github.com/yuwayanagitani/html-exporter

==================================================

Updates

  • v0.2.1 - Support PDF export. You can change font-size when exporting PDF.

==================================================

Supports

This tool is built to support medical students and residents.
Support via thumbing up πŸ‘ on this page and Buy Me a Coffee β˜• motivates me a lot!!


README

HTML Exporter for Anki

HTML Exporter for Anki is an add-on that allows you to export the Back side of selected Anki cards into a clean, well-styled HTML file, preserving the original card CSS and images.
The exported HTML can then be printed or saved as PDF, making it ideal for offline study, handouts, and archiving.


πŸ”— AnkiWeb Page

This add-on is officially published on AnkiWeb:

πŸ‘‰ https://ankiweb.net/shared/info/182840143

Installing from AnkiWeb is recommended for the easiest setup and automatic updates.


🎯 Features

  • πŸ“„ Export the Back side only of selected cards
  • 🎨 Preserve original card CSS styling
  • πŸ–ΌοΈ Include all images used in cards
  • πŸ“ Generate a standalone HTML file
  • πŸ–¨οΈ PDF-ready output via browser print
  • πŸ“š Ideal for notes, handouts, and offline review

πŸš€ How It Works

  1. Select cards in the Anki Browser
  2. Use Edit β†’ Export selected cards to HTML
  3. An HTML file is generated with:
    • Card content
    • Embedded CSS
    • Linked images
  4. Open the HTML file in your browser
  5. Print or export it as PDF

This workflow ensures maximum compatibility while keeping the add-on lightweight and dependency-free.


πŸ–¨οΈ PDF Export Workflow

This add-on does not directly generate PDFs.
Instead, it provides print-optimized HTML, which can be converted to PDF using any modern browser.

Recommended PDF Export Method

  1. Open the exported .html file in Chrome / Edge / Firefox
  2. Press Ctrl + P (or Cmd + P on macOS)
  3. Select Save as PDF
  4. Adjust settings as needed:
    • Paper size (A4 / Letter)
    • Margins
    • Scale
    • Background graphics (recommended ON)
  5. Save the PDF

This approach provides:

  • Better layout control
  • Cross-platform consistency
  • No external PDF libraries required

πŸ“¦ Installation

⬇️ Install from AnkiWeb (Recommended)

  1. Open Anki
  2. Go to Tools β†’ Add-Ons β†’ Browse & Install
  3. Search for HTML Exporter for Anki
  4. Install and restart Anki

πŸ“ Manual Installation (GitHub)

  1. Clone or download this repository
  2. Place it into:
    Anki2/addons21/anki-html-exporter
  3. Restart Anki

πŸ§ͺ Usage

Export Selected Cards

  1. Open Browse
  2. Select one or more cards
  3. Click Edit β†’ Export selected cards to HTML
  4. Choose a file name
  5. Open the HTML file or export it as PDF

βš™οΈ Notes & Tips

  • Images are copied next to the HTML file and referenced relatively
  • The export reflects Anki’s card rendering, not raw field text
  • Enable β€œBackground graphics” in print settings for best PDF results
  • Large selections may take a few seconds to process

πŸ›  Troubleshooting

Issue Solution
No cards exported Ensure cards are selected in the Browser
Images missing Check collection.media files
PDF layout issues Adjust browser print scale / margins
Styles missing Enable background graphics when printing

πŸ“œ License

MIT License β€” Free to use, modify, and distribute.