Templates Import / Export

AnkiWeb addon 712027367

2 other versions of this addon exist. Compare versions ↓

Imports and exports CSS and card templates for all note types via folders, with configurable delimiters, filenames, and optional global CSS handling.
AI-generated summary; may contain mistakes.

importexportformattingcard-templates

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
7 (👍 7 · 👎 0)
Updated
2022-04-13
Anki versions
2.1.42~
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: 2023-12-16 (1051 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 1 open, 0 closed.
  • Pull requests: 3 open, 1 merged.
  • Median first response: 69 hours (1 answered issues and pull requests).
  • Outside pull requests: 50% of 2 merged.
  • Forks that may still be maintained: "Templates Import / Export Updated Nov2025" (1130800042), "📤Templates Import and Export (Fixed by Shigeඞ)" (2032572419).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.42+2022-04-13
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Templates Import / Export this addon original likely abandoned 16 Dec 2023 👍 7 · 👎 0 65% 8
↳ 📤Templates Import and Export (Fixed by Shigeඞ) (AI-detected; may be wrong) likely abandoned 28 Feb 2024 👍 2 · 👎 0 34% –
↳ Templates Import / Export Updated Nov2025 likely stale 7 Nov 2025 👍 1 · 👎 0 21% 0

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Export Anki cards as picture

Exports Anki cards as images using customizable Jinja2 HTML templates and CSS, with configurable resolution, auto-cropping, cloze replacement, excluded fields, and per-note/card-type templates.

exportcard-templates

1 votes 0% approval 👍 0 · 👎 1 ⭐ 0 Anki 24.06.2~ Updated 2024-06-18

Description

A tool for Anki user to import / export CSS and card templates of all note types. Functions & Things to notice
  • Export: choose the directory as the destination for export
    • Each note type has its own folder, containing the CSS and templates of all cards.
    • Each template file is named after the card, containing both the front & back templates.
    • The front & back templates are separated by the configurable delimiter.
  • Import: choose the directory as the source for import
    • Each folder in the chosen directory will be regarded as each individual note type to be imported, matched by the name of the folder.
    • Folders or template files without corresponding note types or cards in Anki will be ignored. The add-on won't create note types and cards as a result. Therefore, importing the directory which was exported earlier is recommended.
    • An extra CSS file can be present in the source directory (compared to what Export outputs), regarded as the global CSS. When the CSS file is missing under a note type folder, the global CSS will be used if present. The behavior when both are present is configurable.
  • Configure: some configurable settings in JSON format
    • delimiter between front and back template: the demimiter for separating front & back templates in each card. Default: ```<br> (<br> is line break)
    • CSS file name: the filename for all CSS files. Default: style.css
    • insert global CSS before individual ones of all note types: if true, global CSS file will be inserted before each note type's CSS file. Otherwise, global CSS will be ignored if there is a CSS file for the note type. Default: false
    • filename extensions for card template files: an empty string "" for no extension. An alternative might be ".html". Default: ""
The source can be found on GitHub: https://github.com/Asu4ni/Templates-Import-Export-for-Anki

README

Templates Import / Export : an Anki Add-on

A tool for Anki user to import / export CSS and card templates of all note types.

Functions & Things to notice

  • Export: choose the directory as the destination for export
    • Each note type has its own folder, containing the CSS and templates of all cards.
    • Each template file is named after the card, containing both the front & back templates.
    • The front & back templates are separated by the configurable delimiter.
  • Import: choose the directory as the source for import
    • Each folder in the chosen directory will be regarded as each individual note type to be imported, matched by the name of the folder.
    • Folders or template files without corresponding note types or cards in Anki will be ignored. The add-on won't create note types and cards as a result. Therefore, importing the directory which was exported earlier is recommended.
    • An extra CSS file can be present in the source directory (compared to what Export outputs), regarded as the global CSS. When the CSS file is missing under a note type folder, the global CSS will be used if present. The behavior when both are present is configurable.
  • Configure: some configurable settings in JSON format
    • delimiter between front and back template: the demimiter for separating front & back templates in each card. Default: ```<br> (<br> is line break)
    • CSS file name: the filename for all CSS files. Default: style.css
    • insert global CSS before individual ones of all note types: if true, global CSS file will be inserted before each note type's CSS file. Otherwise, global CSS will be ignored if there is a CSS file for the note type. Default: false
    • filename extensions for card template files: an empty string "" for no extension. An alternative might be ".html". Default: ""

Others

  • The source can be found on GitHub: https://github.com/Asu4ni/Templates-Import-Export-for-Anki
  • The add-on page on AnkiWeb: https://ankiweb.net/shared/info/712027367