How to type pinyin with tone marks

Pinyin with tone marks, like nǐ hǎo, is typed on a Latin keyboard, never on a Chinese one. On a Mac, add the ABC – Extended input source and press Option with A, E, V or ` before the vowel. On a phone, touch and hold the vowel. Windows has no built-in way, and the free Microsoft PowerToys fills the gap.
First, do you need tone marks at all?
To type Chinese characters, no. A Chinese input method takes plain letters: type nihao, press Space, get 你好. Written Chinese has no tone marks in it. You need them only when you are writing pinyin itself: study notes, flashcards, a worksheet, a name.
The four marks
| Tone | Mark | a | e | i | o | u | ü |
|---|---|---|---|---|---|---|---|
| 1st | macron | ā | ē | ī | ō | ū | ǖ |
| 2nd | acute | á | é | í | ó | ú | ǘ |
| 3rd | caron | ǎ | ě | ǐ | ǒ | ǔ | ǚ |
| 4th | grave | à | è | ì | ò | ù | ǜ |
If you need one or two, copy them from this table. The neutral tone has no mark.
Mac: ABC – Extended
macOS includes a Latin input source that types all four marks.
- Open System Settings and select Keyboard.
- Under Text Input, click Edit next to Input Sources.
- Click +, choose English, select ABC – Extended and click Add.
- Switch to it from the input menu in the menu bar.
- Press the tone key, let go, then type the vowel.
| Tone | Press | Then a vowel | Result |
|---|---|---|---|
| 1st | Option + A | a | ā |
| 2nd | Option + E | a | á |
| 3rd | Option + V | a | ǎ |
| 4th | Option + ` | a | à |
The ` key (grave accent) is the one under Esc. For a toned ü, press the tone key and then V: Option + V, then V, gives ǚ. For a plain ü, press Option + U, then U.
So nǐ hǎo is: N, Option + V, I, Space, H, Option + V, A, O.
Windows: PowerToys Quick Accent
Windows does not ship a keyboard layout for pinyin tone marks, and Microsoft Pinyin outputs characters only. Microsoft's free PowerToys has a tool for this.
- Install Microsoft PowerToys.
- Open PowerToys Settings, select Quick Accent, and turn on Enable.
- Under Characters, select the Pinyin set.
- While typing, hold the vowel and press Space. A bar opens with ā á ǎ à.
- Press Space or the arrow keys to move along the bar, then release to insert.
Hold U or V the same way to reach ü and ǖ ǘ ǚ ǜ.
iPhone and iPad
- Add a Chinese Pinyin keyboard if you have not yet. The steps are in typing Chinese on an iPhone.
- Type the syllable up to the vowel that takes the mark.
- Touch and hold that vowel. A row of accented forms opens.
- Slide your finger to the one you want and let go.
Android
In Gboard, touch and hold a vowel to see its accented forms, then slide to the one you want. Which marks are offered depends on the keyboard language you are using. If one is missing, copy it from the table above or write tone numbers.
Typing ü as v
This is a separate question that gets mixed up with tone marks. Inside a Chinese input method on any device, there is no ü key, so you type v:
nvgives 女 (nǚ)lvgives 绿 (lǜ)lvxinggives 旅行 (lǚxíng)
After j, q, x and y, pinyin drops the two dots, so you type a plain u: qu for 去 (qù), xue for 学 (xué), yu for 鱼 (yú).
Where the mark goes
- If there is an a or an e, it takes the mark: hǎo, xiè, kuài.
- In ou, the o takes it: gǒu.
- Otherwise the last vowel takes it: liù, guì, xué.
Tone numbers
Where marks are awkward, write the tone as a number after the syllable: ni3 hao3. This is a standard convention, and the GraphChinese dictionary and many other tools accept it.
Common problems
Option + V does nothing on my Mac
You are on the plain ABC or U.S. input source. The macron and caron keys exist only on ABC – Extended. Check the input menu in the menu bar.
I typed nǐ hǎo and my Chinese keyboard shows no characters
A Chinese input method wants plain letters. Type nihao.
The third tone looks like a rounded cup
That is ă, a breve, which belongs to other languages. The pinyin third tone is ǎ, with a pointed caron. Pick the pointed one.
Frequently asked questions
How do I type nǐ hǎo with tone marks?
On a Mac with the ABC – Extended input source: n, Option+V, i, space, h, Option+V, a, o. On an iPhone, touch and hold the vowel and slide to the marked form. On Windows, turn on PowerToys Quick Accent with the Pinyin character set, hold the vowel and press Space.
Why does my Chinese keyboard not type tone marks?
A Chinese input method turns untoned pinyin into characters. Its output is 你好, never nǐ hǎo. Tone marks belong to pinyin written as text, so they come from a Latin keyboard that can produce accented letters.
How do I type ü?
Inside a Chinese input method, type v: nv gives 女 and lv gives 绿. To write the letter ü itself on a Mac, press Option+U and then u. With ABC – Extended, a tone key followed by v gives the toned forms ǖ ǘ ǚ ǜ.
Which vowel gets the tone mark?
If the syllable has an a or an e, the mark goes on it. In ou it goes on the o. In every other case it goes on the last vowel, so liù and guì.
Is it acceptable to write tone numbers?
Yes. ni3 hao3 is a standard way to write pinyin where tone marks are awkward to type, with 5 or no number for the neutral tone. Many dictionaries and study tools accept it.
Typing the tone is the easy part. Hearing it is the work. GraphChinese teaches tones and pinyin first, then HSK 1 to 6 in dependency order. The whole course, HSK 0 through HSK 6, is $49 once for lifetime access.
See how it works