Chinese Pinyin Converter (汉字转拼音)

Turn Han characters into pinyin in three formats: tone marks (nǐ hǎo), plain syllables (ni hao) or initials (n h). Each character gets its most common reading, and a small built-in word table resolves frequent polyphone words by context — 重庆 → chóng qìng, 银行 → yín háng but 行业 → háng yè. Non-Han characters (letters, digits, punctuation) are copied through unchanged.
Also see the Chinese Stroke Count tool for per-character stroke numbers, and the Mojibake Fixer when pasted Chinese shows up garbled.
All processing happens locally in your browser with a bundled table — your text is never uploaded to any server.
Output format: ü keeps its dots in toned/plain mode (lǔ / lü).
Characters outside the bundled table are copied through as-is.
Ctrl+Enter converts.
Type or paste Chinese text and click Convert Now. All processing stays in your browser.
Polyphone notes: readings come from a most-common-first table, so isolated characters such as 行 give xíng while the phrase table overrides it in context: 行走 xíng zǒu, 银行 yín háng, 行业 háng yè. 乐 defaults to lè (音乐 yīn yuè is handled by the phrase table). The ü letter keeps its dots: 绿 lǜ (plain lü), 女 nǚ; initials mode returns the consonant only (l / n). Syllables are separated by single spaces; punctuation and foreign text pass through untouched.
What is pinyin?

Pinyin (拼音) is the standard romanisation of Mandarin Chinese: each syllable is an initial (the consonant that starts it), a final (the vowel part that carries it) and a tone written as a mark over the main vowel — nǐ, hǎo, lǜ. The same letters without marks (ni hao) stay readable but lose the tone, and in Mandarin the tone is part of the word.

One character does not guarantee one fixed reading: 行 is xíng in 行走 but háng in 银行, so a converter fed isolated characters must pick the most common reading — this page does that, and its phrase table overrides it in context.