Pinyin looks simple until you have to choose: write nǐ hǎo, ni3 hao3 or ni hao? And once you start converting real sentences, characters like 行, 长 and 还 start to change their sound. This guide explains what each pinyin style is good for, why the sound of a character depends on its neighbours, and what the Hán Việt option in the Chinese to Pinyin converter can and cannot be used for.
Three ways to write tones
Tone marks: nǐ hǎo
The marks sit above the vowel and are what dictionaries and textbooks print. They are the best choice for reading: the eye sees the tone contour at once. Their drawback is typing. On a phone or a laptop with a plain keyboard, marked vowels need a special input method or copy and paste. That is why a converter is useful: you type or paste Chinese and the marks come out already placed (on the a or e when there is one, on the o of ou, and otherwise on the last vowel).
Tone numbers: ni3 hao3
The number after the syllable is the tone: 1 high and level, 2 rising, 3 falling then rising, 4 falling, and 5 for a neutral tone with no mark. Numbers are plain ASCII, so they survive any file format, search box, database field or old email system, and they are easy to type back from memory. Flashcards, input drills and programming-friendly data are the typical uses. The converter writes the neutral tone as 5, so 上 in 路上 reads lu4 shang5.
No tones: ni hao
Without tones, pinyin is a spelling of the sounds only. It is what appears in URLs, file names, product names and in the names of people on forms where diacritics are not accepted. It cannot be read back to the original characters reliably: ma could be 妈, 麻, 马 or 骂. Use it for labels, not for study.
| Style | Example | Best for |
|---|---|---|
| Tone marks | wǒ ài yín háng | Reading, textbooks, printed sheets |
| Tone numbers | wo3 ai4 yin2 hang2 | Flashcards, typing practice, data fields |
| No tones | wo ai yin hang | File names, URLs, forms that reject accents |
Why one character can have several sounds
Many common characters are read in more than one way, and which one is right depends on the word. 行 is háng in 银行 (bank) and xíng in 行走 (walk). 长 is cháng (long) in 长城 and zhǎng (to grow) in 长大. 还 is hái (still) in 还是 and huán (return) in 还钱. A good converter does not look the character up alone; it reads it together with the words around it. The tool uses the pinyin-pro library for that and is right on common sentences.
It is still a dictionary and a set of rules, not a reader. The cases to check by eye are: names and place names, classical Chinese and poetry, uncommon words, and the very few words where the neighbouring context is missing (a single character on its own). For a text you will print, read the result once against the source. If a sound is wrong, edit it in the result box.
What the tool does not do
- Tone sandhi. 你好 is spoken with a rising first syllable, but pinyin writes nǐ hǎo. The converter follows the written form, as dictionaries do.
- Word spacing. Every character is written as its own syllable, separated by a space. Joining syllables into words (yínháng) is a choice you make afterwards.
- Punctuation. Chinese marks such as ,and 。 are written as the plain marks used with Latin letters, so the output reads like normal Latin text.
Hán Việt readings: what they are
Hán Việt (Sino-Vietnamese) is the Vietnamese way of reading Chinese characters, used in a large part of the Vietnamese vocabulary: 银行 is ngân hàng, 学校 is học hiệu in a Hán Việt reading, 国 is quốc. Learners of Chinese from Vietnam use the readings to guess how a word sounds in Mandarin, and learners of Vietnamese use them to understand the long words.
The converter's Hán Việt tab uses the kVietnamese field of the Unicode Unihan database, about 9,500 characters once Simplified characters are looked up through their Traditional forms (国 goes through 國). When Unihan lists several readings for a character, you can show all of them with the switch.
How far to trust it
Be honest about the data. The Unihan field is a mix of Sino-Vietnamese readings and other Vietnamese readings, and for many characters it lists only one. For example 你 comes out as nể, not the literary nhĩ, and 好 as háo but not hảo. Characters it does not contain stay unchanged. That makes the tab useful for study and for a first guess, and not suitable for writing a person's name in Hán Việt or for a dictionary entry. For names, use a Hán Việt dictionary or ask the family.
Using the ruby output
The second tab writes the readings as ruby text above each character: the kind of page used in children's books and graded readers. Copy it into the HTML of a page and set the size of the small text with CSS (rt { font-size: 0.6em; }). If you only need to switch scripts first, the Simplified and Traditional converter runs in the same way, and Japanese text belongs in the Furigana Generator, because the same kanji are read differently there.
A quick way to check a result
Read the pinyin aloud against the characters, one phrase at a time, and stop at every polyphone. If you are not sure, look the word up in a dictionary rather than the single character: a dictionary lists whole words, and the sound belongs to the word. A second check is to run the same sentence with tone numbers. Digits stand out more than marks, so a 4 where you expect a 2 is easier to spot.
Privacy and offline use
Everything runs in your browser. The pinyin library (about 1 MB) and the Hán Việt table (140 KB) are downloaded once, kept by the browser and used offline afterwards. The text you paste is never uploaded.