Chinese characters to Hanyu Pinyin
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Saves as
TXT- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Offline use
- Works without a connection once this page has loaded
- Built with
- pinyin-pro
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About Chinese to Pinyin
This tool converts Chinese characters (hanzi) into Hanyu Pinyin, the official romanisation of Mandarin. Paste any Simplified or Traditional Chinese text and get pinyin with tone marks (nǐ hǎo), with tone numbers (ni3 hao3) or without tones (ni hao). Characters with more than one reading are resolved from the surrounding words, so 银行行长 becomes yín háng háng zhǎng and 重庆 becomes chóng qìng, and the tone changes of 一 and 不 (yí gè, bú duì) are applied unless you switch them off. A table lists every polyphonic character in your text with all its readings, so you can check the choice.
Besides plain pinyin text, the tool can show ruby annotation with the pinyin printed above each character, which is handy for learners, teachers and worksheets, and you can copy it as HTML <ruby> markup. First-letter mode gives the initials (bjdx for 北京大学) used for abbreviations, search keys and sorting. You can choose lower case, capitalised syllables or all caps, the separator between syllables, and whether English words, digits and punctuation are kept. The names mode reads surnames such as 单 (Shàn) and 曾 (Zēng) correctly and formats a name as Zhang Sanfeng. The conversion uses the open-source pinyin-pro library and runs in your browser.
Chinese to Pinyin runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use Chinese to Pinyin
- Type or paste Chinese text into the Input box (a sample is already loaded).
- Pick the output: Pinyin text, Ruby (pinyin above characters) or First letters.
- Choose tone marks, tone numbers or no tones, plus capitalisation and separator in the options.
- Click Copy, or check the Polyphonic characters table for words with several readings.
Frequently asked questions
How accurate is the pinyin for characters with several readings?
Polyphonic characters such as 行 (xíng/háng), 长 (cháng/zhǎng) and 重 (zhòng/chóng) are resolved by matching words in a large dictionary, which is right in the vast majority of everyday sentences. Rare words, names and classical Chinese can still be read wrongly, so check the Polyphonic characters table, which shows the reading used and all possible readings. Enter a single character to see every reading it has.
Why does 一 sometimes show yí or yì?
In speech 一 and 不 change tone before other syllables: 一个 is said yí gè and 不对 bú duì. Textbooks often print these changed tones. Turn off Tone changes for 一 and 不 to get the dictionary tones (yī gè, bù duì) instead. Other tone sandhi, such as two third tones in a row, is not marked, as is usual in written pinyin.
How do I write a Chinese name in pinyin?
Switch on Names mode and enter one name per line. The surname reading is used for characters like 单 (Shàn), 曾 (Zēng) and 区 (Ōu), common two-character surnames such as 欧阳 and 司马 are kept together, and the given name is written as one word: 张三丰 becomes Zhang Sanfeng with no tones and Capitalised selected. Choose All caps for the ZHANG SANFENG style.
What do tone numbers and ü → v mean?
Tone numbers write the tone as a digit after each syllable (1 to 4, and 0 for the neutral tone), which is easy to type on any keyboard. Without tones, ü can be written as v (nv, lv) as on most Chinese input methods; switch on ü as v for that.
Is my text sent to a server?
No. The pinyin dictionary is loaded with the page and the conversion runs entirely in your browser, so your text stays on your device.