Pinyin keyboard

拼音

Type the syllable, then its tone number: ni3 hao3 gives nǐ hǎo, xie4 gives xiè. Type v for ü. The red keys add a tone to the syllable you just typed.

Pinyin with real tone marks, placed on the right vowel for you.

Pinyin words to try

Tap a word to put it in the box above, or type it yourself with the keys shown.

WordMeaningType
Hello (你好)ni3 hao3
Thank you (谢谢)xie4xie
China (中国)Zhong1guo2
Sorry (对不起)dui4buqi3
Green (绿色)lv4se4

Tone numbers in, tone marks out

Hanyu Pinyin writes Mandarin in Latin letters, with a mark over one vowel showing the syllable's tone. Typing those marks is awkward on any standard keyboard, so learners long ago settled on writing the tone as a number after the syllable: ni3 hao3. This keyboard takes that number and puts the correct mark on the correct vowel: nǐ hǎo.

Type the syllable, then 1, 2, 3 or 4. The red keys do the same thing on screen. The fifth, neutral tone has no mark, so just leave the number off, as in xièxie. A digit typed after a space or punctuation stays a digit, so numbers still work.

The four tones
ToneKeyMarkContourExample
1st1 or ˉāhigh and levelmā (mother)
2nd2 or ˊárisingmá (hemp)
3rd3 or ˇǎdippingmǎ (horse)
4th4 or ˋàfallingmà (to scold)

Which vowel takes the mark

Pinyin has a fixed rule for syllables with more than one vowel, and the keyboard applies it for you:

  • If there is an a or an e, it takes the mark: hǎo, xiè, guān.
  • In ou, the o takes it: gǒu, zhōu.
  • Otherwise the last vowel takes it: guì, liú, duō.

ü and v

Pinyin needs one letter English does not have: ü, as in (green) and (woman). Keyboards have always used v in its place, since v is not otherwise used in Mandarin pinyin, so typing v here gives ü, and lv4 gives lǜ. After j, q, x and y the dots are left off by convention (ju, qu, xu, yu), because u after those letters is always the ü sound.

Written tones and spoken tones

Pinyin is written with each syllable's own, dictionary tone, even where speech changes it. The best-known case is two third tones in a row: the first is said as a second tone, so nǐ hǎo sounds like "ní hǎo", but it is still written nǐ hǎo. Type the dictionary tones here and your pinyin will match textbooks and dictionaries.

Two very common words change tone by the syllable after them. is , but becomes before a fourth tone: bú shì. is on its own, before a fourth tone (yí gè) and before the others (yì tiān). Unlike the third-tone rule, many textbooks write these changed tones, so follow whichever convention your course uses; the keyboard types whichever number you give it.

Pinyin, not Chinese characters

This keyboard types pinyin with tones, which is what you need for vocabulary lists, flashcards, homework and showing how a name is pronounced. It does not turn pinyin into Chinese characters. For that you need a pinyin input method, which uses a dictionary to offer characters as you type: Microsoft Pinyin on Windows, Pinyin - Simplified on a Mac, and Gboard or the iPhone keyboard on a phone.

Frequently asked questions

How do I type pinyin tone marks?

Type the syllable followed by its tone number: ni3 gives nǐ, ma1 gives mā. Or type the syllable and tap one of the red tone keys.

How do I type ü in pinyin?

Type v. lv4 gives lǜ and nv3 gives nǚ.

Which vowel gets the tone mark?

a or e if present; o in ou; otherwise the last vowel. The keyboard applies the rule for you.

How do I write the neutral tone?

Leave the number off. The neutral tone has no mark, as in xièxie or māma.

Does this type Chinese characters?

No. It types pinyin with tone marks. To get characters, use a pinyin input method such as Microsoft Pinyin or Gboard.