Chinese Virtual Keyboard

Type Chinese characters online — enter Pinyin with the virtual QWERTY keyboard, pick the hanzi from the candidate list, then copy or download your text. Supports Simplified and Traditional Chinese.

0 chars
Pinyin:
Type Pinyin letters to see character candidates
Script:

What Is a Chinese Virtual Keyboard?

A Chinese virtual keyboard is an online input tool that lets you type Chinese characters (hanzi) without a physical Chinese keyboard or a system-level Input Method Editor (IME). Because Chinese has tens of thousands of characters, direct input is done through Pinyin — the standard romanization system that maps the sounds of Mandarin to Latin letters. You type the Pinyin spelling of the word you want, a list of matching hanzi candidates appears, and you click the correct character to insert it.

This tool embeds a Pinyin-to-hanzi dictionary covering approximately 3,200 of the most frequently used Chinese characters across ~400 standard Pinyin syllables. It supports both Simplified Chinese (简体字, used in mainland China and Singapore) and Traditional Chinese (繁體字, used in Taiwan and Hong Kong), as well as a full set of Chinese punctuation marks including the Chinese period (。), Chinese comma (,), corner brackets (「」「」), and book title marks (《》).

How to Type Chinese Characters Online

Using this online Chinese keyboard involves four steps:

  1. Choose your script — select Simplified (简) or Traditional (繁) using the Script buttons above the keyboard. This changes which characters appear as candidates.
  2. Type Pinyin — click the QWERTY letter keys to spell the Pinyin of the character you want. The Pinyin input buffer and a candidate list update in real time with each letter you type.
  3. Select a character — click the correct hanzi from the candidate list. The character is inserted at the current cursor position in the text area and the Pinyin buffer clears automatically. The first candidate is highlighted — pressing Space confirms it without reaching for the mouse.
  4. Copy or download — use the Copy button to copy to the clipboard, Download .txt to save as a UTF-8 file, or Clear to reset the text area.

You can also click directly in the text area to reposition the cursor before inserting the next character, mix Chinese and Latin text freely, and type Chinese punctuation directly from the punctuation rows without going through Pinyin.

Simplified vs Traditional Chinese

Simplified Chinese (简体字) was introduced in the 1950s by the People's Republic of China to increase literacy by reducing stroke counts. Traditional Chinese (繁體字) retains the older, more complex forms used for centuries and is still the standard in Taiwan, Hong Kong and Macau. Many characters are identical in both systems; the differences affect several hundred common characters. For example: 爱/愛 (love), 来/來 (come), 书/書 (book), 学/學 (study), 语/語 (language).

This tool's Traditional Chinese mode converts the Simplified candidate list using a conversion table of the most common character pairs. For highly specialized or rare Traditional characters, a native system IME set to Traditional Chinese will provide more complete coverage.

What Is Pinyin?

Pinyin (拼音, pīnyīn, literally "spell sound") is the official romanization system for Standard Mandarin, adopted by the PRC in 1958 and by the United Nations in 1982. It represents each Mandarin syllable with a sequence of up to 6 Latin letters: an optional initial consonant (b, p, m, f, d, t, n, l…), a vowel nucleus, an optional final consonant (n, ng) and one of four tone marks (or no mark for the neutral tone). This virtual keyboard accepts toneless Pinyin — you type the letters without tone marks and the candidate list shows all characters that share that syllable across all four tones.

Common Chinese Typing Scenarios

Writing a greeting

Type 你好 (nǐ hǎo, "hello"): type ni → click 你 from candidates → type hao → click 好. Then add 吗 (ma) for a question: type ma → click 吗.

Testing CJK rendering

Generate a realistic Chinese sentence to test font rendering, text wrapping and character width in your web app. Type a mix of common nouns (人 rén, 中国 zhōngguó) and punctuation directly from the punctuation row.

Mixed script text

Click in the text area after a Chinese character, then use your physical keyboard to type Latin words or numbers. The virtual keyboard inserts at the cursor position so you can freely mix Chinese, English and numerals in the same paragraph.

Frequently Asked Questions

Mandarin Chinese has over 50,000 hanzi. Displaying all of them as clickable keys is impractical. Pinyin input narrows the search space to 5–15 candidates per syllable, which is how all modern Chinese IMEs work — whether on a phone, tablet or desktop. Typing the 1–6 letter Pinyin spelling and clicking one candidate is the fastest and most natural way to enter Chinese on a Latin-script keyboard.

This tool includes approximately 3,200 of the most frequently used characters — enough for everyday writing, messaging and content creation. Rare characters (uncommon place names, classical Chinese, technical terms) may not appear. For complete coverage, use your operating system's built-in Chinese IME: on Windows, enable Microsoft Pinyin; on macOS, add the Pinyin input source in System Settings → Keyboard → Input Sources.

If the Pinyin buffer is not empty, pressing Space confirms the first candidate in the list and inserts it, then clears the buffer. This is the standard behavior of most Chinese IMEs. If the buffer is already empty, Space inserts a regular space character into the text area.

Simplified Chinese (简体字) uses reduced-stroke forms introduced in mainland China in 1956 to improve literacy. Traditional Chinese (繁體字) retains the fuller historical forms used in Taiwan, Hong Kong and among many overseas Chinese communities. Both systems share the same spoken Mandarin; only the written forms differ. In this tool, switching scripts changes which character forms appear in the candidate list and are inserted into the text area.

Yes. Click inside the text area to focus it and type any characters using your physical keyboard. If your OS keyboard is set to a Latin layout, physical key presses will type Latin characters. The virtual keyboard handles Pinyin input independently — you can switch between the two freely within the same text area.

No. The tool runs entirely in your browser — no text is sent to any server. All input stays in memory on your device and is lost when you close or refresh the page. Use the Download .txt button to save your work locally.

The text area uses the system Chinese font stack: Microsoft YaHei (Windows), PingFang SC (macOS/iOS), Noto Sans CJK SC (Linux/Android), then a generic sans-serif fallback. All modern operating systems include at least one font with full CJK Unified Ideograph coverage, so Chinese characters should render correctly without loading any external font.

Yes. Click "Download .txt" to save a UTF-8 encoded plain text file named chinese-text.txt. UTF-8 is the universal encoding for Chinese text and is supported by all modern text editors including Notepad (Windows 10+), TextEdit (macOS), VS Code and Google Docs.