Pinyin Keyboard with Tone Marks

The layout at a glance

Type a syllable followed by its tone number (1 to 4) and the keyboard replaces the number with the tone mark on the correct vowel: ni3 → nǐ, hao3 → hǎo. The number 5 or 0 gives the neutral tone (ma5 → ma).

The layout reaches 28 characters that an ordinary Latin keyboard does not carry: ¯ ´ à á è é ì í ò ó ù ú ü ā ē ě ī ō ū ǎ ǐ ǒ ǔ ǖ ǘ ǚ ǜ ˇ.

27 further characters come from the AltGr key (Alt on mobile): ¯ ´ ˇ ē é ě è ū ú ǔ ù ī í ǐ ā á ǎ à ō ó ǒ ò ì ǖ ǘ ǚ ǜ.

ScriptLatin
LayoutQWERTY
Reading directionLeft to right
Character keys47
Letters available50
Non-ASCII characters28
Unicode rangeU+0041–U+005A, U+0061–U+007A, U+00C0–U+024F
Third layer (AltGr)Yes
TransliterationNo

How to type in Pinyin (tone marks)

  1. Click the on-screen keys or type on your physical keyboard — both write into the same text area.
  2. Shift shows the second layer of every key: capitals and the characters printed at the top right.
  3. AltGr (Alt on mobile) shows the third layer, the characters printed at the bottom right.
  4. The Copy button puts the whole text on the clipboard, ready to paste into an email, a document or a form.
  5. The Google, YouTube and ChatGPT buttons run a search with the text you typed, without retyping it.

Key reference table

Each row is one physical key: the base character, the one produced with Shift, then the one produced with AltGr.

KeyWith ShiftWith AltGr
`~—
1!¯
2@´
3#ˇ
4$`
5%—
6^—
7&—
8*—
9(—
0)—
-_—
=+—
qQ—
wW—
eEē
rRé
tTě
yYè
uUū
iIú
oOǔ
pPù
[{ī
]}í
\|ǐ
aAā
sSá
dDǎ
fFà
gGō
hHó
jJǒ
kKò
lLì
;:—
'"—
zZǖ
xXǘ
cCǚ
üÜǜ
bB—
nN—
mM—
,<—
.>—
/?—

The characters on this layout

The 28 characters this layout can produce:

  • ¯
  • ´
  • à
  • á
  • è
  • é
  • ì
  • í
  • ò
  • ó
  • ù
  • ú
  • ü
  • ā
  • ē
  • ě
  • ī
  • ō
  • ū
  • ǎ
  • ǐ
  • ǒ
  • ǔ
  • ǖ
  • ǘ
  • ǚ
  • ǜ
  • ˇ

Other keyboards in the Latin script

These keyboards are written in the same script and share much of their character set.

Further reading

Frequently Asked Questions

How do I type the four pinyin tones?

Add the tone number right after the syllable: ma1 → mā (first tone, high and level), ma2 → má (rising), ma3 → mǎ (falling-rising), ma4 → mà (falling). A digit typed after a character that is not pinyin stays a digit. You can also switch to AltGr and click ā á ǎ à, ē é ě è, ī í ǐ ì, ō ó ǒ ò, ū ú ǔ ù, ǖ ǘ ǚ ǜ directly, or use the dead keys ¯ ´ ˇ ` (press the mark first, then the vowel).

Which vowel gets the tone mark?

The standard rule: on a or e if the syllable has one (hǎo, xiè, mèi), on the o of "ou" (dōu, gǒu), otherwise on the last vowel (liù, guì, duō). The keyboard applies this automatically: type liu4 to get liù, gui4 to get guì.

How do I type ü, as in lü and nü?

The key where V sits on a QWERTY keyboard types ü (Shift: Ü), just as in Chinese input methods. lü4 gives lǜ (绿, green) and nü3 gives nǚ (女, woman). After j, q, x and y, the ü sound is written u without dots: ju, qu, xu, yu.

How do I write the neutral tone?

Type 5 or 0 after the syllable: ma5 or ma0 gives ma with no mark, and the number is removed. For example ma1ma5 → māma, xie4xie5 → xièxie. The neutral tone carries no mark in pinyin.

How is this different from the site's Chinese keyboard?

The Chinese keyboard converts pinyin into Chinese characters (nihao → 你好). This keyboard writes no characters: it produces the pinyin itself with tone marks (nǐ hǎo), for learners, textbooks, flashcards, names and homework.

How do I type pinyin tone marks on Windows, Mac or a phone?

Windows has no standard layout for pinyin tone marks, and the Microsoft Pinyin IME outputs Chinese characters. On a Mac, the ABC – Extended input source gives Option+a (macron), Option+e (acute), Option+v (caron) and Option+` (grave), followed by the vowel. On phones, long-pressing a vowel rarely offers every form (ǎ, ǐ, ǚ and so on). The simplest way is to type here in any browser and copy the text.

Should tone changes (tone sandhi) be marked?

Generally no. Pinyin writes each syllable's original tone: nǐ hǎo is written with two third tones even though it is pronounced ní hǎo. Some textbooks do mark the changes of 一 and 不 (yí gè, bú shì); just type the tone number you want to display.