Type Chinese on iPhone and iPad: Keyboards for Notes and Code
To type Chinese on an iPhone or iPad, add a Chinese keyboard in Settings > General > Keyboard > Keyboards, then switch to it while you type. Any app that uses the system keyboard can then take Chinese text, including a plain-text or code editor.
That matters when you're writing Lunar New Year greetings, study notes, or comments in a code file. The keyboard you pick changes how fast you type and how much you have to memorize. Below: which layouts exist, how to add and switch between them, and how to keep Chinese text and code syntax out of each other's way.
Pick a Chinese keyboard layout
Chinese input methods fall into two broad families. As the Wikipedia overview of Chinese input methods puts it, most "allow selection of characters based either on their pronunciation or their graphical shape." Phonetic methods are easier to learn but less efficient. Graphical methods allow faster input but have a steep learning curve.
Apple's tech specs list the layouts available on recent iPhones. On the iPhone 16 Pro specs page, Chinese (Simplified) includes Handwriting, Pinyin QWERTY, Pinyin 10-Key, Shuangpin, and Stroke. Chinese (Traditional) includes Cangjie, Handwriting, Pinyin, Shuangpin, Stroke, Sucheng, and Zhuyin. The exact set varies by model and iOS version, so the list you see under Add New Keyboard is the one that counts.
Phonetic: Pinyin, Zhuyin, Shuangpin
You type the pronunciation and pick the character from a list of candidates. Because Chinese has many homophones, you choose among several characters for the same sound, and modern systems predict the likely one from context. Pinyin is the most common choice in mainland China, while Zhuyin (also called Bopomofo) predominates in Taiwan. Shuangpin is a variant that cuts each character to two keystrokes.
If you already read pinyin, start there. It's the easiest on-ramp.
Shape-based: Cangjie and Stroke
Shape-based keyboards build a character from its components or strokes instead of its sound. Cangjie assigns "roots" to the keys of a standard keyboard and is taught in Hong Kong and Macau schools. Once learned it is fast, but expect a longer learning period than with phonetic input.
Handwriting
The Handwriting keyboard lets you draw the character. It helps when you recognize a character but do not know how it is pronounced. Apple lists it for both Simplified and Traditional Chinese. You'll likely use it for the odd character rather than whole paragraphs.
Add a Chinese keyboard and switch between them
The steps come from Apple's guide to adding or changing keyboards on iPhone:
- Open Settings, tap General, then tap Keyboard.
- Tap Keyboards, then tap Add New Keyboard.
- Choose a Chinese keyboard from the list (for example Simplified Pinyin or Traditional Zhuyin).
Adding a keyboard for another language also adds that language to your Preferred Languages under General > Language & Region.
To switch while typing, touch and hold the Emoji button or the Switch Keyboard key, then tap the keyboard you want. To remove a keyboard, swipe left on it in the Keyboards list and tap Delete. To change the order, tap Edit and drag.
The iPad uses the same Settings path. If you write on an iPad with a hardware keyboard, our list of iPad keyboard shortcuts for writing covers the shortcuts worth learning first.
Punctuation and spacing in plain-text notes
Once the keyboard works, a few text conventions keep Chinese notes tidy. The W3C's Requirements for Chinese Text Layout describes how Chinese punctuation works: marks such as the pause and stop marks take the same dimensions as a character, and their position inside the character square differs between mainland China and Taiwan or Hong Kong. Horizontal text uses curved quotation marks. Chinese words are also not separated by spaces, so do not add a space between characters the way you would between English words.
In a Markdown note, that gives you a simple habit: type Chinese prose with the Chinese keyboard and its own punctuation, and leave the Markdown markers as plain ASCII.
## 春节计划
- [ ] 给奶奶打电话
- [ ] 买红包For deeper detail on layout and fonts, see our guide to punctuation, spacing, and fonts in Chinese Markdown.
Typing Chinese in code comments and config files
Code mixes two kinds of characters: syntax that a parser reads, and text that people read. Put Chinese only in the second kind, such as comments, string values, and documentation.
# 计算订单总价
def total(items):
return sum(item.price for item in items)The #, parentheses, colon, and quotation marks are all syntax. If you type them while a Chinese keyboard is active, some layouts can produce full-width or curved variants that a compiler won't accept. The habit that helps: switch back to the English keyboard before you type any syntax character, and switch to Chinese only for the comment text. It is the same multi-keyboard routine we describe for Hebrew text in Markdown on iPhone and Mac.
Doing this with Carets
Carets is a native notes and code editor for iPhone, iPad, and Mac. It works with Markdown, plain text, and code with syntax highlighting, organized into files, projects, and tags. Because it uses the system keyboard, any Chinese keyboard you add in Settings is available when you write.
Two things help with the workflow above. Syntax highlighting makes it easy to see which part of a line is code and which part is a comment, so a stray full-width character stands out. Your files stay plain text, so a Chinese note or a commented script opens anywhere. Carets doesn't add its own Chinese input method. It relies on the keyboards Apple provides.
Get Carets on the App Store for iPhone, iPad, and Mac.
Conclusion
Pick the layout that matches how you learned Chinese: Pinyin or Zhuyin for sound, Cangjie or Stroke for shape, Handwriting for the odd character you cannot pronounce. Add it once in Settings, switch with the Emoji or Switch Keyboard key, and keep Markdown and code syntax in ASCII.
Frequently Asked Questions
Do I need a separate app to type Chinese on iPhone?
No. Chinese keyboards are added in Settings > General > Keyboard > Keyboards, and they work in any app that shows the system keyboard, including a text or code editor.
Which Chinese keyboard is easiest to start with?
Phonetic keyboards are easier to learn. Pinyin is a good start if you read Simplified characters, and Zhuyin fits Traditional characters as used in Taiwan. Handwriting works if you do not know the pronunciation.
Does the iPad have the same Chinese keyboards as the iPhone?
The Settings path is the same on both. The exact layouts depend on the model and iOS version, so check the list under Add New Keyboard on your device.
Should I use Chinese punctuation in Markdown files?
In Chinese prose, yes. Keep Markdown syntax characters such as #, -, and backticks as ASCII so the file still parses.