Chinese to Pinyin Converter with Hán Việt
Turn Chinese text into pinyin with tone marks, tone numbers or no tones, or into Hán Việt readings. Nothing leaves your browser.
On this device · No uploadWhat happens to your text
The text stays in your browser. For pinyin, the page loads the pinyin-pro library (about 1 MB, once) and reads each character in the context of the words around it, so a character with several sounds gets the one that fits. You choose how tones are written: tone marks (hǎo), numbers (hao3, with 5 for a neutral tone) or no tones (hao). Spaces go between syllables, and Chinese punctuation is turned into the plain marks used with Latin letters.
For Hán Việt, the page loads a table of about 9,500 characters (140 KB) built from the Unicode Unihan database and looks every character up. Simplified characters are looked up through their Traditional form, so 国 gives quốc. Switch on Show every reading to see all the readings Unihan lists for a character, separated by a slash.
The second tab, Hanzi with reading (HTML), writes the same readings as ruby text above each character. A preview shows how it looks, and the HTML can be copied into a web page or a lesson sheet. After the first use the library and the table are kept by your browser, so the tool works offline too.
Limits to know
- Up to 300,000 characters at a time, worked in pieces so the page stays responsive. A .txt file is read as UTF-8, with GBK and Big5 as fallbacks.
- Polyphones are decided by the words around them and are right in most everyday text, not in all of it. Names, poetry and rare words are the weak spots, and 还, 重, 长, 行, 得 are worth a second look in a text you will publish.
- Pinyin has no word spacing rules built in: every character gets its own syllable, separated by a space. Writing 银行 as yínháng is a style choice you make by hand.
- Tone sandhi is not applied. 你好 is written nǐ hǎo, as it is in the dictionary, even though it is spoken with a rising first tone.
- Hán Việt is a study aid, not a dictionary. The Unihan field behind it,
kVietnamese, is a mix of Sino-Vietnamese and other Vietnamese readings, and for many characters it lists only one. For example 你 shows nể, not the literary nhĩ, and 好 shows háo but not hảo. Characters it does not know are left as they are. Check names against a Hán Việt dictionary.
Worked example: two sounds of 行
The page opens with 我在银行工作,他喜欢行走。 already converted. In pinyin you get wǒ zài yín háng gōng zuò, tā xǐ huan xíng zǒu. The same character 行 is háng in 银行 (bank) and xíng in 行走 (walk), because the tool looks at the neighbouring characters. With tone numbers the first words read wo3 zai4 yin2 hang2, and with no tones wo zai yin hang.
- Paste a paragraph of Chinese, or drop a .txt file.
- Pick Pinyin and a tone style. For flashcards or typing practice, tone numbers are easiest to type back.
- Press Copy for the reading line, or open the HTML tab to get ruby for a web page.
- Switch to Hán Việt to read the same text with Vietnamese readings (银行 becomes ngân hàng).
Problems and fixes
- A reading is wrong. Edit it in the result box; the tool has no way to learn from corrections, so do this after you copy. For a very short phrase, add a neighbouring word that makes the meaning clear and then delete it.
- Traditional characters. They work. For Hán Việt the Traditional form is the primary one. If you need the text in the other script first, use Simplified ↔ Traditional Chinese.
- Japanese text. Kanji will be read in Chinese here. Use the furigana tool for Japanese.
- "The Hán Việt data could not be loaded." The first use needs the network for a 140 KB file. Check the connection and try again.
Credits and licences
Pinyin: pinyin-pro 3.29.5, MIT licence. Hán Việt: the Unicode Han Database (Unihan) 18.0.0, fields kVietnamese and kTraditionalVariant, © 2026 Unicode, Inc., used under the Unicode terms of use; the licence text is at /vendor/hanviet/LICENSE-UNICODE.txt. See open data and libraries on the About page.
How to use Chinese to Pinyin
Paste Chinese text
Type or paste Simplified or Traditional Chinese, or drop a .txt file. A sample with the polyphone 行 is already converted.
Choose the reading
Pinyin with tone marks, numbers or no tones, or Hán Việt. The result updates as you change an option.
Copy the result
Copy the reading line, or open the HTML tab for ruby text above each character. Works offline after the first use.