Chinese Text Sort
Free online chinese text sort tool, no installation required
About Chinese Text Sort
Sorts newline-separated Chinese lines by one of three strategies: Pinyin (alphabetical by Mandarin pronunciation), Stroke (by total stroke count), or Frequency (by Unicode code point). Paste your lines, pick a strategy, and the sorted output appears below with a copy button.
How to Use
1. Choose a Sort By mode: Pinyin, Stroke, or Frequency. 2. Paste one Chinese entry per line into the input textarea. 3. Click Sort. 4. Review the sorted output and use Copy to copy it.
Sort Strategies
Pinyin looks up the Mandarin romanization of each line's first character in a built-in pinyin map and compares with localeCompare using the zh locale; characters missing from the map fall back to their raw text. Stroke sums a built-in stroke-count table over every character in the line (unmapped characters default to 10 strokes) and sorts ascending by total. Frequency compares the Unicode code point of the first character (charCodeAt(0)) for a deterministic but language-agnostic ordering. Blank lines are filtered out before sorting, so trailing newlines do not affect the result.
▶Why are some lines sorted by their raw text instead of pinyin?
▶How does the Stroke strategy handle unknown characters?
▶Does Pinyin sort use the first character or the whole line?
▶Can I sort in descending order?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee