RepositoryTypeScript
krmanik

krmanik/Anki-xiehanzi

Learn, read, write and practice Mandarin by drawing strokes in Anki Desktop, AnkiDroid and AnkiMobile with audio of HSK 2.0 (HSK1-6) and HSK 3.0 (HSK 1-9), BCT and YCT words.

438stars
35forks
9issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: practice-mandarin

#1 Repository of the week

1
TINIX TRENDING·Topic: mandarin

#1 Repository of the week

1
TINIX TRENDING·Topic: drawing-strokes

#1 Repository of the week

Anki xiě hànzì (写汉字)

Learn, read, write and pronounce Mandarin by drawing stroke order in Anki — with HSK 1–9 audio, pinyin tone colors and a browser-based deck generator.

🔗 krmanik.github.io/Anki-xiehanzi

Works in Anki Desktop, AnkiDroid and AnkiMobile.

Two ways to use it

  1. Download a ready-made deck — New HSK (2025) covering HSK 3.0 levels 1–9. See below.
  2. Build your own — the Create tool turns any Chinese words into a custom .apkg, in your browser, no account or upload.

HSK word lists

Browse every HSK word list — Old HSK (2012) levels 1–6 and New HSK 3.0 (2025) levels 1–9 — with tone-coloured hanzi and pinyin, zhuyin, traditional forms, part of speech, classifiers and frequency. Any level downloads free as CSV, Excel, Word, PDF, plain text or JSON, or opens straight in the deck creator as an Anki deck with audio and example sentences. The same page holds the ready-made decks below.

Shop

Premium decks and extras are available at the Patreon shop.


Download the deck — New HSK (2025-11)

Import via File → Import in Anki.

[!WARNING] Make a backup of your collection (with scheduling information) before importing.

Build your own deck — Create tool

krmanik.github.io/Anki-xiehanzi/create

Generate a deck from typed words, pasted paragraphs, an uploaded file, or a full HSK / BCT / YCT level. The tool segments the text, looks up each word in CC-CEDICT, lets you customize card types, fields and appearance with a live preview, then exports a self-contained .apkg (audio, fonts and stroke data bundled — works offline once imported). Everything runs client-side.

See Export a Deck for the walkthrough.

Features

  • Draw and practice stroke order (powered by Hanzi Writer)
  • Simplified and traditional characters
  • Pinyin (tone-marked) and Zhuyin (Bopomofo), with tone colors
  • Colored strokes and characters
  • HSK 1–9 audio plus text-to-speech
  • CC-CEDICT definitions, part of speech, radical, breakdown, HSK level and frequency
  • Smart example sentences
  • Night mode; adjustable character size and stroke width
  • Show / hide Simplified, Traditional, Pinyin or Meaning per card
  • Decks sorted in frequency order
  • External lookups: Pleco, HanziCraft, mnemonics
  • Load indicator at the bottom (green = loaded, red = error / not loaded)

Some setting changes take effect on the next card.

Docs

View the docs — features, studying tips, exporting a deck, and FAQ.

[!NOTE] The old (v1) version of the site is still available at krmanik.github.io/Anki-xiehanzi/v1. It is archived for reference and no longer updated.


Previous decks (2021-03) — five legacy types, click to view

Separate decks for each type:

  1. Stroke order
  2. Meaning
  3. Pinyin / Zhuyin
  4. Pronunciation (audio + Pinyin / Zhuyin)

Sorted in frequency order. Download

Five card types per HSK-level note: stroke order, meaning, pinyin/zhuyin, pronunciation, tone marks.

Sorted in frequency order. Download

Type 3

Same five card types as Type 2, but sorted in alphabetical pinyin order.

Not frequency-sorted. Download

Type 4

Single note type — front: pinyin + meaning; back: writing component.

Not frequency-sorted. Download

Type 5

HSK 2.0 deck.

Not frequency-sorted. Download


Acknowledgements

Stroke drawing uses the Hanzi Writer JavaScript library. Its character and stroke-order data is derived from Make Me a Hanzi.

Disclaimer

This is a JavaScript implementation that works because Anki renders flashcards in a webview. It may not work on every device. Make backups (with scheduling information) before importing. Some audio files are missing; they can be regenerated with text-to-speech using gtts-textToMp3.

Build a word list

Contribute

See CONTRIBUTING.md or the Contributing docs page. Wrong word, pinyin or meaning? Those live in the HSK-3.0-words-list submodule — fix them there.

More decks by the author: AnkiWeb.

License

Author: Mani (krmanik). MIT License and GPL 3.0. Third-party licenses: License.md.


Part of the code in this project was generated with AI (Claude Opus 4.8).

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
LoganConnor44/anki-templates

This codebase is a solution for making Chinese study, through Anki, more enjoyable by making the flashcards beautiful.

53
Sep 22, 2025
RepositoryRuby
drkameleon/complete-hsk-vocabulary

Complete, HSK 2.0/3.0 (汉语水平考试) Vocabulary Lists in Json

338
Mar 27, 2026
RepositoryKotlin
ankidroid/Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.

12.4k
Nov 28, 2026
RepositoryJava
mmjang/ankihelper

No description provided.

303
Dec 30, 2021
RepositoryJavaScript
mreichhoff/HanziGraph

A webapp to visualize relationships among Chinese characters and to see example sentences that illustrate their use. Also available for Japanese learners.

170
Oct 4, 2026
RepositoryPython
2noise/ChatTTS

A generative speech model for daily dialogue.

40.1k
Apr 10, 2026
RepositoryTypeScript
zh-lx/pinyin-pro

中文转拼音、拼音音调、拼音声母、拼音韵母、多音字拼音、姓氏拼音、拼音匹配、中文分词

4.8k
Oct 10, 2026
RepositoryTypeScript
reuseman/flashcards-obsidian

🎴 An Anki plugin for Obsidian.md

1.1k
Oct 31, 2026
RepositoryTypeScript
debanjandhar12/logseq-anki-sync

An logseq to anki syncing plugin with superpowers - image occlusion, card direction, incremental cards, and a lot more.

590
Nov 28, 2026