Pleco to Anki

AnkiWeb addon 427686509

Imports Pleco bookmarks into Anki cards, sorting characters, pinyin, definitions and examples into fields and formatting them, with optional example sentences from Spoonfed Chinese.
AI-generated summary; may contain mistakes.

card-creationimportformattingservice-client

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
14 (👍 14 · 👎 0)
Updated
2026-03-28
Anki versions
24.06~
License
Unlicense (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
JSON, CSV, TSV, Python
Description language
en

Maintenance

stale

  • Last update or commit: 2026-03-28 (218 days before the snapshot).
  • Test files: 1.
  • Commits in the last year: 11.
  • Issues: 1 open, 15 closed.
  • Pull requests: 0 open, 4 merged.
  • Median first response: 5 hours (14 answered issues and pull requests).
  • Outside pull requests: 50% of 2 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2024-10-02
2.1.124.06+2026-03-28
History across monthly snapshots

Loading…

Similar addons

Pinyin on top of Hanzi

Generates Pinyin ruby annotations above Hanzi in selected fields, matching existing Pinyin or producing it via word segmentation and a bundled dictionary, and can build HTML definition tables.

card-creationformattingdictionary

27 votes 59% approval 👍 21 · 👎 6 ⭐ 2 Updated 2018-01-30
Hanzi2Pinyin

Converts Chinese characters in any Anki field into Pinyin or Zhuyin ruby annotations displayed above the Hanzi, supporting simplified and traditional text.

card-creationformatting

6 votes 61% approval 👍 6 · 👎 0 ⭐ 13 Anki 25.09~ Updated 2025-09-23

Description

An add-on for importing Pleco bookmarks, enhancing the integration of two essential tools for learning Chinese. Please check out the GitHub page for a comprehensive manual and more details.

The AddOn streamlines flashcard creation by automatically transferring the character info, pinyin, definitions, and examples from Pleco Bookmarks to Anki cards, with improved formatting. Optionally, it includes context-rich example sentences from Spoonfed Chinese for enhanced pronunciation practice and learning from context.

Quick Guide

  1. Install using the code 427686509 or by downloading the AddOn directly
  2. Export Pleco Bookmarks on your phone and save them onto your computer. Make sure to use the settings specified here.
  3. Import the Bookmarks in Anki under Tools -> Import Pleco Bookmarks
  4. Reformat the cards to your liking

You can contact me with questions, problems or comments under git.pvp(at)magenta.de I hope you find this tool useful.

In case you have problems installing the AddOn

  • I have only recently updated to AddOn to support the newer Anki versions.
  • In case you have any trouble, try to download and install the pleco_to_anki.ankiaddon file here
  • Please let me know if you find any bugs, thank you

README

Pleco-to-Anki

An Anki add-on for importing Pleco bookmarks, enhancing the integration of two essential tools for learning Chinese.

It streamlines flashcard creation by automatically transferring character info, pinyin, definitions, and examples from Pleco bookmarks to Anki cards, with improved formatting.

Optionally, it includes context-rich example sentences from Spoonfed Chinese for enhanced pronunciation practice.

Quick Guide

  1. Install the add-on through AnkiWeb using the code 427686509, or download the latest release from the Releases page and double-click the .ankiaddon file.
  2. Export Pleco bookmarks on your phone and save them on your computer. Make sure to use these settings.
  3. Import the bookmarks in Anki under Tools -> Import Pleco Bookmarks.
  4. Reformat the cards to your liking.

Table of Contents

Documentation

1. What this tool does

The Pleco app allows users to store bookmarks and export them to a text file. This tool parses the text file and imports the bookmarks into Anki. The bookmarks are sorted into corresponding fields, such as the Chinese characters, pinyin, definition, and example sentences.

After importing, one only has to give the cards a final touch to one's liking, for example by deleting redundant information, adding pictures, or changing the note type.

Since the information stored in Pleco bookmarks is not well structured, this tool does not work perfectly: sometimes the formatting will be off or content sorted into the wrong field. However, it still speeds up the process of building high-quality Anki cards, since it automates most of the work and adds HTML formatting to the notes.

Additionally, this add-on can include example sentences from Spoonfed Chinese. It finds sentences from the Spoonfed deck that contain the word at hand and adds them to the card. Since the Spoonfed decks contain thousands of sentences with audio from native speakers, this is a great way to practice pronunciation in context. The Spoonfed deck needs to be loaded in your Anki collection for this feature to work.

1.1. Example of a card being imported from Pleco to Anki

  1. Bookmark in Pleco
  2. Raw data after exporting the Pleco bookmarks
  3. Card after importing into Anki using this tool
  4. Card after manual editing in Anki

2. Installation

Three options:

  1. AnkiWeb (recommended): In Anki go to Tools -> AddOns -> Get AddOns and enter code 427686509. View on AnkiWeb.
  2. GitHub Release: Download the latest .ankiaddon file from the Releases page and install by double-clicking or via Tools -> AddOns -> Install from file.
  3. From source: See the Contributing section.

If you want to use the Spoonfed Chinese feature, you need to have the Spoonfed Chinese deck loaded in your Anki collection. The deck can be purchased at Spoonfed Chinese.

3. Usage

3.1. Export Pleco Bookmarks in the Pleco app

  1. In the Pleco app go to Import / Export -> Export Bookmarks.

  2. Make sure to match the File Format and Include Data options from the screenshot below. For Character Set, choose traditional or simplified.

Then tap Begin Export.

  1. Go to the file manager and send the file to your computer, e.g. via AirDrop, email, or a messenger app.

3.2. Import Pleco Bookmarks into Anki using this AddOn

In Anki go to Tools -> Import Pleco Bookmarks. Select the file you exported from Pleco and click Ok. The options are set to sensible defaults and toggle the features described below.

3.3. Reformat the cards to your liking

Example of a card after importing. In red: example sentences from Pleco. In green: example sentences from Spoonfed Chinese.

View of the note while editing in Anki. Either edit in the standard view or click the button to the top right of each field to edit the HTML directly.

Same card after manual editing.

4. Features

4.1. Sort information into fields

The definition and examples in Pleco bookmarks are not separated in any way. This tool tries to identify example sentences and sort them into a separate field.

For example, the definition of 中國 in Pleco is:

China 中國大陸 zhōngguó dàlù Chinese mainland; mainland of China ....

This gets split into two fields:

  • Definition: China
  • Examples: 中國大陸 zhōngguó dàlù Chinese mainland; mainland of China ....

This also works for words with multiple definitions and examples.

The tool creates notes with the fields Hanzi, Pinyin, Definition, Examples (and Spoonfed if enabled).

4.2. Format information

Prettier Pinyin

Pleco bookmarks contain numerical pinyin (e.g. ni3 hao3). This tool converts it to pinyin with tone marks (e.g. nǐ hǎo), using a custom fork of the open-source tones repository.

Reformatting example sentences

HTML tags are added to example sentences to make them look nicer in Anki. Most importantly, the pinyin and translation are hidden behind the Chinese characters and only shown when clicking on them. This makes it easier to practice reading without relying on the pinyin and translation too much.

For example, the example sentence 中國大陸 zhōngguó dàlù Chinese mainland; mainland of China of the word 中國 will look like this after importing:

Reformat Keywords

Pleco notes can contain keywords such as verb, idiom, (TW) etc. This tool reformats them into styled HTML for improved readability.

For example, the keywords verb and adjective are replaced by v. and SV.

The keyword replacements can be customised by editing pleco_to_anki/pleco/keyword_replacements.py.

4.3. Add Spoonfed sentences

If you have the Spoonfed Chinese deck loaded in your Anki collection, this tool can add example sentences from it to your cards. It adds up to 3 sentences containing the word at hand. The idea is to choose the sentence that best fits the desired difficulty level and delete the others. Both traditional and simplified characters are supported.

In this example, 3 sentences contain the character 藏, but the first and third actually contain the compound word 收藏 rather than the single-character verb 藏. So the first and third sentences can be deleted, keeping only the most relevant one.

Contributing

If you find a bug or have a feature request, feel free to open an issue or submit a pull request directly.

If you find a word that should import correctly but doesn't, add it to one of the existing example data files in pleco_to_anki/ (e.g. exampledata.txt) or create a new one from your Pleco export. A good bug report includes the problematic entry as example data.

Development setup

(You might want to first uninstall the Pleco-to-Anki add-on in Anki before starting development and make a backup of your collection.)

Copy or symlink the pleco_to_anki/ folder into Anki's addons directory and restart Anki to load your changes.

Copy (simple):

cp -r pleco_to_anki ~/Library/Application\ Support/Anki2/addons21/pleco_to_anki

Repeat after every change and restart Anki.

Symlink (recommended): lets you edit the source directly without copying.

ln -s /path/to/Pleco-to-Anki/pleco_to_anki ~/Library/Application\ Support/Anki2/addons21/pleco_to_anki

Only needs to be done once. Anki must still be restarted after each change.

On Windows the addons folder is typically at %APPDATA%\Anki2\addons21.

Packaging

To build the .ankiaddon file:

cd pleco_to_anki && zip -r "../pleco to anki vX.X.X.ankiaddon" . && cd ..

The packaged file is uploaded as a release asset on GitHub. .ankiaddon files are not tracked in the repository.