Convert Chinese characters to pinyin, with tone styles
The Chinese to Pinyin tool converts Chinese characters to pinyin as you type, in one of three tone styles: tone marks (mā), tone numbers (ma1) or no tones. The result updates live and can be copied with one click. It is useful for annotating the pronunciation of new characters, names, place names or lyrics, for preparing material for people learning Chinese, and for generating toneless pinyin for file names or search keywords. The conversion is done by the open-source pinyin-pro library, which uses context to choose readings of polyphonic characters. No automatic converter is perfectly accurate, though, and the details and limits are described below.
For 汉字转拼音工具 the three styles give: tone marks 'hàn zì zhuǎn pīn yīn gōng jù'; tone numbers 'han4 zi4 zhuan3 pin1 yin1 gong1 ju4'; no tones 'han zi zhuan pin yin gong ju'. For polyphonic characters, 银行 行走 gives 'yín háng xíng zǒu', so both 行 are read correctly. 重庆 重要 gives 'chóng qìng zhòng yào'. In 了解 了不起 the character 了 is read liǎo, and in 音乐 快乐 the character 乐 is read yuè and lè respectively. All of this output came from running the same library the tool uses.
You can't set the reading of a character manually in this tool. You can convert the text in smaller pieces, or copy the wrong word out and fix its pinyin by hand with the help of a dictionary. For pinyin in children's textbooks or anything printed, always have a person proofread it.
Tone marks (mǎ) are easy for people to read and are the usual choice in textbooks. Tone numbers (ma3) use only ordinary letters and digits, which makes them easier to copy, search and process where typing tone marks is awkward. 'No tones' is the simplest and suits file names or search keywords, but it loses tone information and can make different words look identical.
They are not any more: consecutive Latin letters and digits are kept together as one block. If the spacing in the result is not what you want, convert just the Chinese portion and leave the English where it is.
As an aid, yes, because you can see the pinyin and tone for each character. But pinyin is no substitute for listening, especially for the neutral tone, the erhua ending and tone changes in actual speech. Use recordings of a native speaker or a dictionary with audio alongside it.
Pinyin is calculated by the pinyin-pro library inside your browser. The tool makes no network requests, so your text is not sent to a server or stored, and reloading the page restores the default text.