Four-Corner Code Lookup
Find the four-corner code (四角號碼) of any Chinese character, see what each digit means, or list every character with a code.
Four-Corner Code Lookup
Loading the four-corner table…
The ten shapes
- 0 亠 頭 — head
- 1 一 橫 — horizontal, rising stroke or right hook
- 2 丨 垂 — vertical, left-falling stroke or left hook
- 3 丶 點 — dot or right-falling stroke
- 4 十 叉 — cross
- 5 扌 插 — pierce
- 6 口 方 — square
- 7 ⺁ 角 — corner
- 8 八 八 — eight
- 9 小 小 — small
Codes from the Unicode Han Database, Unicode 18.0.0, © Unicode, Inc., used under the Unicode License v3. Everything runs in your browser — nothing you type is sent anywhere.
How to use the four-corner code lookup
Each one shows its four-corner code — four digits and, for most, a fifth after the point — and what each digit says about that corner of the character.
Four digits list every character with that code, GB 2312 and Big5 characters first. Add the fifth digit (7529.6) to narrow the list, or use ? for a digit you are unsure of (75?9). Characters with the same four digits but no fifth digit in Unicode's data are listed apart, not left out.
It is looked up in turn, so you can check its code and its neighbours.
The ten shapes are numbered 0 to 9; a code is the shapes at the upper-left, upper-right, lower-left and lower-right corners, in that order. Read the corners from the handwritten regular-script (楷書) form, not a printed typeface: 戶 begins with a dot when written, so its first digit is 3 (3027.7).
Reading a character by its corners: how the four-corner code works
A Chinese dictionary needs an order, and characters have no alphabet. Radicals and stroke counts are one answer; the four-corner system is another. It looks only at the corners of a character: the shape of the stroke at the upper left, the upper right, the lower left and the lower right, each turned into a digit from 0 to 9. 陳 is 7529: a corner at the upper left, a piercing stroke at the upper right, a vertical at the lower left and a "small" shape at the lower right. Many codes add a fifth digit after a point, read from the stroke just above the lower-right corner — 陳 is 7529.6.
Ten shapes, numbered 0 to 9
The digits stand for ten stroke shapes: 0 頭 (a dot over a horizontal, as in 亠), 1 橫 (a horizontal, which also covers a rising stroke and a right hook), 2 垂 (a vertical, which also covers a left-falling stroke and a left hook), 3 點 (a dot, which also covers a right-falling stroke), 4 叉 (two strokes crossing), 5 插 (one stroke piercing two), 6 方 (a square, as in 口), 7 角 (a corner), 8 八 (two strokes in the shape of 八) and 9 小 (the shape of 小). The groupings for 1, 2 and 3 are as Taiwan's National Central Library sets them out in its classification scheme.
0 does two jobs. It is the 頭 shape, and it is also what a corner gets when it has nothing new. In the rules printed in the Japanese dictionary 字通, a stroke that already has a number is 0 at a later corner, and when the top or bottom of a character is a single stroke, it is numbered at the left corner and the right corner is 0. So 一 is 1000.0: one horizontal at the upper left, and nothing new at any other corner. 亠 is 0000.0 for the same reason: the 頭 is coded once, at the upper left, and the other corners have already been used. A 0 in first place is always a 頭, but after that the code alone cannot say which job it is doing (諒, 0069.6, has a real 亠 at its upper right), so this page gives both readings for a later 0.
The corners are read from the handwritten regular-script (楷書) form, not from a printed Song or Ming typeface: both the National Central Library's rules and 字通 say so. 戶 begins with a dot when written by hand, so its first digit is 3, whatever the font on your screen shows.
Why so many characters share a code
Four digits allow ten thousand codes, but characters do not spread evenly across them. Unicode's table gives codes for 16,916 characters, and they use 3,546 distinct four-digit codes, counting both codes of the 149 characters that have two. Only 1,134 characters, 6.7%, have a four-digit code to themselves, and the code 4422 is shared by 97.
The fifth digit helps, but less than you might expect. 14,746 of the 16,916 characters have one, and with it 4,994 characters, 29.5%, have a code to themselves, so most still share. Unicode also almost never gives a simplified-only form a fifth digit: of the 2,380 characters in GB 2312 but not in Big5, 2,168 have none (our count from Unihan's own GB 2312 and Big5 mappings). 寬 is 3021.6, but 宽 is plain 3021, so a search for 3021.6 cannot say whether 宽 belongs; this page lists such characters apart rather than dropping them. What is left is down to stroke count and the reader's eye, which is why lists put GB 2312 and Big5 characters first and fewer strokes before more.
Where you still meet it
The system was devised by Wang Yunwu of the Commercial Press, as 字通 records it, and made public in 1926, according to Hu Shi's preface to it. A revised version, with these ten shapes and the fifth corner, existed by February 1930, when Hu Shi wrote a postscript describing it.
Unicode's own description says the system is now rarely used for typing but continues in indexing — in academic studies, reference works and some Chinese dictionaries. It is also a way to look up a character you can see but cannot read: you do not need its pronunciation or its radical, only its corners.
For learners in Singapore and Malaysia
Students here usually meet characters through Hanyu Pinyin, which only helps once you know how a character is said. The four-corner code works from the shape alone, which makes it a useful way to find an unfamiliar character in an older dictionary or catalogue that is indexed this way.
Why 陳 is 7529.6, and why 97 characters can share one four-corner code
A four-corner code reads the corners in a fixed order: upper left, upper right, lower left, lower right.
The optional fifth digit comes from the stroke just above the lower-right corner.
陳 is 7529.6, 王 is 1010.4 and 國 is 6015.3.
Unicode's table gives four-corner codes for 16,916 characters.
Those characters share just 3,546 distinct four-digit codes.
One four-digit code is shared by as many as 97 characters.
14,746 of the 16,916 characters have a fifth digit; with it, 29.5% of characters have a code to themselves, against 6.7% on four digits.
Unicode records two codes for 149 characters.
Unicode's data comes from public-domain work by Hartmut Bohn, Urs App and Christian Wittern, with additions by Jaemin Chung.
Unicode describes the system as rarely used for typing today, but still used to index dictionaries and reference works.
Frequently asked questions
-
A way of indexing Chinese characters by the shapes of their four corners. Each corner gives one digit from 0 to 9, so every character gets a four-digit code, often with a fifth digit after a point.
-
Each digit is one of ten stroke shapes: 0 頭, 1 橫 (horizontal, also a rising stroke or a right hook), 2 垂 (vertical, also a left-falling stroke or a left hook), 3 點 (dot, also a right-falling stroke), 4 叉 (cross), 5 插 (pierce), 6 方 (square), 7 角 (corner), 8 八 and 9 小. After the first digit, a 0 can also mean the corner has nothing new: its stroke was already coded at an earlier corner, or there is none. The page explains each digit of every code it shows.
-
An extra digit for the stroke just above the lower-right corner, written after a point (7529.6). It splits some groups that share the first four digits, though not all: with it, 29.5% of characters have a code to themselves, against 6.7% without. Unicode almost never gives a simplified-only form a fifth digit, so a five-digit search lists characters with the same four digits and no fifth digit separately.
-
Unicode records two codes for 149 characters, without giving a reason. The page shows both, and searching either code finds the character.
-
Type ? (or *) for that digit: 75?9 finds every code starting 75 and ending 9. Add a point and a fifth digit to narrow the list.
-
Characters in GB 2312 or Big5, the two main legacy character sets, come first, then fewer strokes before more. Most coded characters are in one of the two (15,432 of 16,916), so in practice the order is mostly by stroke count.
-
No. Cangjie and Wubi are input methods for typing, built from letter keys. The four-corner code is a numeric index from the shapes of the corners, mainly used for looking characters up.
-
Unicode's table does not give one for it. Its codes cover 16,916 characters, so many rare ones are absent.
-
From the Unicode Han Database (Unihan), Unicode 18.0.0, whose four-corner codes derive from public-domain data by Hartmut Bohn, Urs App and Christian Wittern, with additions by Jaemin Chung.
-
No. The table is downloaded to your browser and the lookup happens there.
Method & sources
How it computes
Codes are Unihan 18.0.0 kFourCornerCode for 16,916 characters (149 carry two codes). Each digit is read from the system's ten stroke shapes, corners in the order upper-left, upper-right, lower-left, lower-right, then the stroke above the lower-right. Lists sharing a code put GB 2312/Big5 characters first, then fewer strokes.
What this tool implements
- A character Unicode gives two codes for (149 do) shows both, and searching either code finds it. A search query that is not four digits (with optional ? wildcards and a fifth digit) is refused rather than guessed.
- Characters sharing a code — up to 97 share one four-digit code — are listed with the GB 2312/Big5 characters first and fewer strokes before more, and the total is always stated even when the list is capped.
- A 0 in first place is read as the 頭 shape. A 0 at a later corner is read as "nothing new — already coded at an earlier corner, or empty", with the 頭 shape named as the other possibility, because the code alone cannot tell them apart (字通 凡例: a stroke already numbered is 0 at a later corner).
- A five-digit search also lists, separately and labelled, the characters with the same four digits and no fifth digit in Unihan — 2,170 characters, 2,168 of them in GB 2312 but not Big5 — instead of dropping them.
Sources
- Unicode Standard Annex #38, Unicode Han Database (Unihan), revision 41 (Unicode 18.0.0) — definition of kFourCornerCode, its corner order and fifth digit: https://www.unicode.org/reports/tr38/
- Unihan.zip, Unicode 18.0.0: https://www.unicode.org/Public/18.0.0/ucd/Unihan.zip — licence: https://www.unicode.org/license.txt
- The ten stroke shapes (頭 橫 垂 點 叉 插 方 角 八 小) and corner-taking rules of the four-corner system, as tabulated in 四角號碼 (Chinese Wikipedia, tertiary — used for the shape names only): https://zh.wikipedia.org/wiki/%E5%9B%9B%E8%A7%92%E5%8F%B7%E7%A0%81
- 字通 (白川静, 平凡社), 凡例「四角号碼について」 — the second-revision rules, the 0 rule and 「字体は正楷による」: https://japanknowledge.com/contents/jitsu/hanrei06.html
- 國家圖書館, 中文圖書分類法 (2007), 附錄一 — the shape table (1 包括橫,刁與右鉤; 2 包括直,撇與左鉤; 3 包括點與捺) and the 楷書 rule: https://catweb.ncl.edu.tw/class2007/b13_app01.pdf
Pick up where you left off
Stored only in this browser — never sent to our servers.