About Cangjie codes 倉頡碼
What Cangjie is
Cangjie (倉頡輸入法) is a shape-based way to type Chinese on a standard keyboard. Instead of spelling a character's sound, you break it into parts and type one key per part. It needs no knowledge of pronunciation, so it works the same for Cantonese and Mandarin speakers, and it is the most widely taught input method in Hong Kong and Taiwan.
How a code is built
Each of the letters A to Y carries a radical (字根): A 日, B 月, C 金, D 木, E 水, F 火, G 土, H 竹, I 戈, J 十, K 大, L 中, M 一, N 弓, O 人, P 心, Q 手, R 口, S 尸, T 廿, U 山, V 女, W 田, X 難, Y 卜. Each key also stands for shapes that look like its radical, so 戈 (I) also covers a dot at the top of a character. Z (重) is not part of any code; input methods use it to pick between characters.
A character is split from top to bottom and left to right, and a code has at most five keys. Long characters keep only the first parts and the last one, so the code stays short. For example 魚 is the hook on top, then 田, then the four dots: the hook is 弓 (N), 田 is W and the dots are 火 (F), giving 弓田火, or NWF on the keyboard.
Versions and why dictionaries differ
Cangjie has been revised several times. The 3rd generation (倉頡三代) is what the Windows and macOS input methods use, and it is what this tool shows, from the Unicode Unihan database. The 5th generation and some school dictionaries code a few characters differently, so 黃 is TMWC here but TMLC elsewhere. If your input method rejects a code, try the other version or open the character on the EdUHK dictionary from the result row.
What this tool does
Type or paste any Chinese text and every distinct character is listed once, in order, with its radicals and keyboard letters. Spaces, punctuation, digits and English are skipped. The data covers about 29,000 characters, including the common Hong Kong characters, and the lookup runs entirely in your browser; your text is never uploaded. Copy gives you the table as tab-separated text.
Frequently asked questions
- How do I find the Cangjie code of a character?
- Paste the character into the box. The 倉頡碼 column shows the radicals, such as 弓田火, and the 鍵盤字母 column shows the keys to press, such as NWF.
- What is 速成 (Quick) input?
- 速成 is a simplified Cangjie that types only the first and last key of the full code, so 魚 is NF. It is easier to learn but shows more candidates to pick from.
- Why does my input method give a different code?
- This tool uses 3rd-generation Cangjie, as the Windows and macOS input methods do. Some input methods and dictionaries use the 5th generation, which codes a few characters differently.