Wubi (五笔86) input-code lookup. Type a Chinese character to see its Wubi86 code (simple + full code), or type a Wubi code to reverse-find matching characters. Browser-only, nothing uploaded.
Wubi (86) Input Code Lookup (五筆)
How to use
Pick a lookup direction
Two modes sit at the top: "Char → code" finds the Wubi code for a character; "Code → chars" reverse-looks-up characters from a Wubi code. Click to switch.
Character → code
Type one or more characters (a whole sentence works) and press Look Up. Each character lists every Wubi86 code the table holds for it, labelled level-1, level-2 or level-3 simple code, or full code.
Code → characters
Switch to "Code → chars", type a Wubi code made of letters a–y (e.g. k or khk; z stands for any one key), and press Look Up to list the characters that code produces. Exact and prefix matches are supported.
Read the result
All codes are Wubi86 (五笔字型 86 edition). The data comes from the open-source Rime Wubi table; everything runs locally in your browser — nothing is uploaded or stored.
Wubi: A Shape-Based Chinese Input Method
Wubi (五笔字型, "five-stroke") is a shape-based Chinese input method designed by Wang Yongmin; his patent, 优化五笔字型编码法及其键盘 (CN85100837A), was filed on 1 April 1985. Unlike pinyin input, which encodes a character by how it sounds, Wubi encodes it by how it is built: every character is broken into a sequence of radicals (字根) laid out across the 25 keys a–y. In the patent's own description, the radicals are grouped into five regions by their first stroke — horizontal, vertical, left-falling, right-falling and turning — five keys to a region, and the z key carries no radicals but is kept in reserve. So you can type a character without knowing how it is pronounced.
Simple codes vs full codes
The patent sets out three levels of simple code. Each of the 25 keys carries one very high-frequency character, typed with a single press (level 1); about 650 characters take just their first two codes (level 2); several thousand take their first three (level 3); and a character with a simple code keeps its full code too. The full code comes from the complete decomposition rules and is at most four keys. A level-1 code need not begin the full code: 发 is v but its full code is ntcy, and 为 is o with full code ylyi. So this tool does not go by length. A one-letter code is level 1; a two- or three-letter code that begins a longer code of the same character is level 2 or 3; anything else is a full code. The table here holds 616 level-2 and 3,570 level-3 codes.
Reverse lookup: from code to character
The tool's second mode is a reverse lookup — type a string of Wubi letters and the tool searches a reverse index it builds on load. Exact matches come first, then characters whose code starts with what you typed. Following the patent's use of the z key, a z in the query stands for any one key: izy lists every character with an i?y code, 汉 (icy) among them. Every match is a deterministic table lookup — no model, no randomness.
"Wubi typing ignores sound and reads shape — if you can take a character apart, you can type it."
About this tool's data
This tool uses a Wubi86 table: the single-character part (70,944 characters) of the open-source Rime input method's wubi86 table. We checked it character by character against a separately maintained table, Haifeng Wubi 86: of the 20,902 basic-block CJK characters in GBK, 20,900 carry Haifeng's full code or a variant spelling Haifeng also accepts; 纛 and 麸 differ. The Rime table also carries z-initial symbol shortcuts (zzpp lists radicals); those are not Wubi codes and the tool does not show them. Wubi98 and the New Century edition place some radicals differently and give some characters different codes — 马 is cnng in 86 and cgd in 98 — so if you use another edition, defer to the table that ships with your own IME. All computation runs locally in your browser; nothing is uploaded or stored.
A one-key code need not begin the full code
发 has the level-1 code v but the full code ntcy; 为 is o with full code ylyi; 以 is c with nywy. A level-1 code is assigned by key, not abbreviated from the full code.
Wang Yongmin's patent for the method, 优化五笔字型编码法及其键盘 (CN85100837A), was filed on 1 April 1985 and published on 30 July 1986.
The "five strokes" are horizontal (一), vertical (丨), left-falling (丿), right-falling (丶) and turning (乙). The patent groups the 25 keys a–y into five regions of five keys by the first stroke of the radicals on them.
The patent puts about 650 characters on two-key simple codes and several thousand on three-key ones. This table has 616 level-2 codes, 3,570 level-3 codes and 25 level-1 codes.
A key-name character is its key four times: 王 gggg, 土 ffff, 言 yyyy. Any other radical that is itself a character is its key plus its first, second and last strokes: 五 gghg, 车 lgnh, 米 oyty.
A full code is at most four letters: a character with four or more radicals takes its first, second, third and last. One with only two or three adds a single "last-stroke identifier" key — it adds one key rather than padding to four, so 汉 is ICY and 字 is PBF, three keys each. Both examples are in the patent.
Wubi has several editions: after 86 came 98 and a New Century edition, with radicals placed differently and some codes changed. 马 is cnng in 86 and cgd in 98; 万 is dnv in 86 and gqe in 98.
In the patent the z key is kept in reserve to stand for any radical the typist cannot place. Input methods differ: Rime's wubi86 schema uses z to start a pinyin reverse lookup. This tool's reverse lookup treats z as any one key.
Some characters carry two full spellings in the table, and either one types them: 428 characters here, 卌 among them (fjfh and glk).
Because Wubi codes are unrelated to sound, homophones do not collide: 在 dhfd, 再 gmfd and 载 falk are told apart by shape, instead of all sitting under "zai" as in pinyin.
This tool uses the open-source Rime Wubi86 table and runs entirely in your browser — nothing is uploaded or stored.
Frequently Asked Questions
-
Wubi is a shape-based input method that encodes a character by its form rather than its sound, designed by Wang Yongmin, whose patent CN85100837A was filed in 1985. It decomposes each character into radicals mapped onto the 25 keys a–y, so you can type without knowing the pronunciation. This tool looks up the Wubi86 code for any character, or reverse-finds characters from a code.
-
It uses the Wubi86 (五笔字型 86 edition) table, taken from the open-source Rime Wubi table. Wubi98 and a New Century edition also exist, with different radical regions and some different codes. If you use the 98 edition, codes may differ slightly — defer to the table shipped with your IME.
-
Because Wubi gives high-frequency characters simple codes. 中 has k (level 1), kh (level 2) and khk (its full code). Length alone does not decide it: a one-letter code is level 1; a two- or three-letter code that begins a longer code of the same character is level 2 or 3; anything else is a full code. A few characters carry two full spellings, and both are listed.
-
A simple code is a shortened code for common characters: level-1 takes one key, level-2 two, level-3 three. A full code is the standard code from the complete decomposition rules, usually four letters. The patent keeps the full code valid for characters that have a simple code. A level-1 code is assigned by key and need not begin the full code (发: v / ntcy).
-
In "Code → chars" mode, the tool builds a reverse index (code → character) when the data loads; you type a string of Wubi letters and it finds the matching characters. Exact matches are shown first, followed by characters whose code starts with what you typed. A z in the query stands for any one key. One code can map to several candidates.
-
No. Apart from loading this tool's own code-table JSON once, there are no network requests and no AI / large language model involved. Every lookup is a deterministic local table query: the same input always returns the same result.
-
No. All lookups happen locally in your browser with no server calls, no tracking, and no storage. The characters or codes you type never leave your device.
-
Two main reasons: (1) different edition — your IME may be Wubi98 or New Century, whose radical regions differ from the 86 edition this tool uses; (2) different simple-code choices — implementations don't always assign the same simple-code level to a character. This tool follows the open-source Rime Wubi86 table (钓, for instance, has the level-3 code qqy here and none in the Haifeng table).
-
Yes. Wubi decomposes by shape, so traditional characters also have codes — though the radical breakdown may differ from the simplified form. This tool's table holds 70,944 single characters, traditional forms among them (國 is lakg); if a traditional character returns no code, try its simplified counterpart.
-
Each has strengths; there is no absolute answer. Wubi has few collisions, fast blind typing, handles rare characters, and ignores pronunciation — but it has a steeper learning curve, requiring you to memorise radicals and decomposition rules. Pinyin has almost no learning cost and is universal, but suffers many collisions and frequent candidate selection. This tool just looks up codes — it doesn't choose for you.
Method & sources
How it computes
A lookup both ways over the 70,944 single characters (75,696 codes) of Rime's wubi86 table. A one-letter code is a 一级简码; a two- or three-letter code that begins a longer code of the same character is a 二级/三级简码; anything else is a full code. z-initial symbol shortcuts are not shown. Reverse lookup lists exact before prefix matches, and z in a query stands for any one key (WubiKernel).
What this tool implements
- Wubi 86 (五筆字型 86 版). Where 86 and 98 differ (60 frequent characters checked, e.g. 马 cnng in 86, cgd in 98), the table carries the 86 code every time; a 98 or New Century table would give different answers for some characters.
- Code levels follow Wang Yongmin's patent CN85100837A: one very high-frequency character on each of the 25 keys (一级简码), about 650 on their first two codes (二级), several thousand on their first three (三级), and the full code kept for all. A 一级简码 is assigned by key and need not begin the full code (发 v / ntcy), so levels are decided by that rule, never by length. The table holds 25, 616 and 3,570 such codes.
- Checked against the separately maintained Haifeng Wubi 86 table: of 20,902 CJK Unified characters in its GBK file, 20,900 carry Haifeng's full code or a 容错 spelling it also accepts (纛 and 麸 differ). A 306-character sample — all 25 一级简码 and 键名字, 65 成字字根, 98 识别码 characters, the 80 most frequent and 60 that differ in 98 — is pinned in the test suite with Haifeng's 一简/二简/三简 levels.
- Single characters only: the vendored file is exactly the single-character entries of rime-wubi wubi86.dict.yaml at commit 152a0d3f3efe40cae216d1e3b338242446848d07, whose 136,916 entry lines also carry multi-character words this tool does not use.
- z is not a Wubi 86 key for characters: the patent keeps it in reserve to stand for any radical, and Rime's wubi86 schema uses it for pinyin lookup. The table's 677 z-initial entries (zzpp radical list, zzd numbered symbols) are hidden; in a reverse query z matches any one key.
- Derived from the open-source Rime community table of the 86 scheme, NOT from the trademarked 王碼 distribution — 王碼 being 王永民's brand, named after his surname, for his commercial Wubi products.
Sources
- Rime input-method project, rime-wubi wubi86.dict.yaml at commit 152a0d3f3efe40cae216d1e3b338242446848d07 (LGPL-3.0; derived via ibus-table and the JidianWubi table, per upstream AUTHORS): https://github.com/rime/rime-wubi/blob/152a0d3f3efe40cae216d1e3b3…
- Haifeng Wubi table (海峰五笔), © 2010 SUN Haifeng, BSD-3-Clause, as shipped by ibus-table-chinese at commit 44301450e681c23d60301747856c74b5b9d1312e, tables/wubi-haifeng/GBK.tab: https://github.com/mike-fabian/ibus-table-chinese/blob/44301450e6…
- 王永民. 优化五笔字型编码法及其键盘, Chinese patent CN85100837A, filed 1985-04-01, published 1986-07-30 — code levels, key names, character radicals, the identifier key (汉 ICY, 字 PBF) and the z key: https://patents.google.com/patent/CN85100837A/zh
- Rime wubi86.schema.yaml at the same commit — z as the pinyin reverse-lookup prefix: https://github.com/rime/rime-wubi/blob/152a0d3f3efe40cae216d1e3b3…
Abridged — the full review record for this tool runs longer than the list above.
Pick up where you left off
Stored only in this browser — never sent to our servers.