Skip to content
UniKit

Surname counter

Count surnames in a name list: leading numbering and bracketed notes are cleaned away, compound surnames (60 common ones built in) stay whole, and every surname gets its count, share and first position. Unrecognized names are listed separately. Everything runs locally.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

One name per line; commas, enumeration commas, semicolons and tabs also work. Leading numbering such as "1. ", bracketed notes such as "(lead)" and spaces inside names are stripped.

1–1000; 1 shows everything.

Surname counts

One "surname: count" line per row in the chosen order, ready to copy.

Enter a name list to see the surname counts

Names: 0 · Recognized: 0 · Unrecognized: 0 · Distinct surnames: 0 · Compound surnames: 0

What this tool does

  • Group a roster — customers, students, attendees — by surname and see at a glance which one dominates and what share it holds.
  • Clean a pasted list while counting: leading numbering such as "1. " and bracketed notes such as "(lead)" are stripped first.
  • Check compound surnames: 60 common two-character surnames (欧阳, 司马, 诸葛 …) are built in, so 欧阳娜 is not mistaken for 欧.

Example

Input

张三
李四
欧阳娜
张三

Output

张: 2
李: 1
欧阳: 1

By default the list is sorted by count descending (ties by first appearance) and compound surnames stay whole. The table holds 60 entries; turn the option off and 欧阳 merges into 欧.

Frequently asked questions

How is the surname detected?

The name is cleaned first (leading numbering, bracketed notes and all whitespace removed), then the first two characters are matched against 60 built-in compound surnames: a hit keeps the pair (欧阳, 司马, 诸葛 …), otherwise the first character is used. So 欧阳娜 counts as 欧阳 while 欧豪 counts as 欧.

What counts as unrecognized?

Names that do not start with a Chinese character (Latin names, digits, emoji) and names left with a single character after cleaning. They are counted separately and left out of the surname table — 张三丰 still counts as 张, while Alice and a lone 张 are reported as unrecognized.

How do I separate the names?

Use newlines, English or Chinese commas, enumeration commas, semicolons or tabs. Spaces inside a name are removed (欧阳 娜 still counts as 欧阳), so do not rely on spaces as separators.

How complete is the compound surname table?

It holds 60 common two-character surnames taken from the compounds recorded in the classic Hundred Family Surnames plus surnames in everyday use: 欧阳, 太史, 端木, 上官, 司马, 东方, 独孤, 南宫, 万俟, 闻人, 夏侯, 诸葛, 尉迟, 公羊, 赫连, 澹台, 皇甫, 宗政, 濮阳, 公冶, 太叔, 申屠, 公孙, 慕容, 仲孙, 钟离, 长孙, 宇文, 司徒, 鲜于, 司空, 闾丘, 子车, 亓官, 司寇, 巫马, 公西, 颛孙, 壤驷, 公良, 漆雕, 乐正, 宰父, 谷梁, 拓跋, 夹谷, 轩辕, 令狐, 段干, 百里, 呼延, 东郭, 南门, 羊舌, 微生, 梁丘, 左丘, 东门, 西门, 第五. It is not a complete household-register list: an unlisted rare compound falls back to its first character.

How is the share calculated?

Share = occurrences of that surname ÷ names whose surname was recognized × 100%, rounded to one decimal. Unrecognized entries are excluded from the denominator, while the "names" figure above counts every cleaned entry.

Keywords:surname counterfamily name countname statistics

Related tools