Pinyin tone mark converter
Turn numbered Mandarin pinyin into tone marks: ni3 hao3 becomes nǐ hǎo.
Type a tone number (1–5) after each syllable. Spaces, punctuation, and u: for ü are supported.
Places marks strictly on the spelling entered; does not validate Mandarin syllables, infer tones, or convert Chinese characters.
How tone marks work
Use 1–4 for the four tones and 5 or 0 for a neutral tone, which has no mark.
The mark goes on a or e when present, on o in ou, and otherwise on the last vowel: hao3 → hǎo, shui3 → shuǐ, liu2 → liú. Enter ü directly or use u: (lu:4 → lǜ).
Reference: Princeton University Press, Hanyu Pinyin Romanization System, pp. 4–5 and 7.