Typing Persian correctly is not a matter of choosing a Persian-looking font. You need an Iranian Persian keyboard layout that produces Persian letters, Persian digits, Persian punctuation, and U+200C ZWNJ. The font then shapes those stored characters from right to left.
This page teaches the stable workflow and the core layout. Exact modifier keys can differ across Windows, macOS, Linux, and mobile keyboards, so use the operating system’s layout viewer for shifted symbols. The important result is the character you enter—not a memorized shortcut that may belong to another platform.
Choose Persian, not merely an Arabic-script layout
Add Persian for Iran in your device’s keyboard settings. On systems that offer both “Persian” and “Persian (Standard),” choose the standard Iranian layout. An Arabic layout can produce text that looks plausible but stores Arabic ك and ي instead of Persian ک and ی. Those code points behave differently in search, sorting, final forms, and automated checks.
The core desktop letter rows are organized around physical QWERTY positions, but they do not transliterate QWERTY sounds:
| Physical keys | Core Persian output on the standard layout |
|---|---|
| Q W E R T Y U I O P | ض ص ث ق ف غ ع ه خ ح ج چ |
| A S D F G H J K L ; ' | ش س ی ب ل ا ت ن م ک گ |
| Z X C V B N M , . / | ظ ط ز ر ذ د پ و . / |
The placement is a keyboard standard, not a pronunciation chart. For example, physical D produces ی, not a Persian sound resembling English d. Learn the layout through short words and frequent patterns rather than translating each Persian letter back to a Latin key.
من فارسی مینویسم.
man fârsi mi-nevisam
I write in Persian.
متن را ذخیره کردم.
matn râ zakhire kardam
I saved the text.
Let the font choose joining forms
A modern text system stores the base letter once and selects its isolated, initial, medial, or final glyph from context. You do not type a special “initial kaf” or “final beh.” Presentation-form characters copied from old software may look correct while breaking search and accessibility.
Likewise, a natural cursive break does not require a typed space. In دانشگاه, the non-connecting ا prevents a join before ن automatically. Type the one word continuously.
دانشگاه نزدیک ایستگاه است.
dâneshgâh nazdik-e istgâh ast
The university is near the station.
این پیام برای شماست.
in peyâm barâ-ye shomâst
This message is for you.
Enter the half-space deliberately
The standard Persian layout provides U+200C ZWNJ, usually with Shift+Space on standard desktop layouts. Some operating systems or third-party keyboards assign another shortcut; if Shift+Space inserts an ordinary space, check the layout viewer rather than repeatedly trying it.
Test the result with میروم. A correct ZWNJ leaves no normal word-sized space, blocks the join after می, and survives copying. It is not a hyphen, zero-width space, non-breaking space, or deleted boundary. The page on spaces and half-spaces explains why the distinction is morphological.
فردا گزارش را میفرستم.
fardâ gozâresh râ mi-ferestam
I will send the report tomorrow.
کتابها در پوشهی جدید هستند.
ketâb-hâ dar pushe-ye jadid hastand
The books are in the new folder.
Digits and punctuation use separate characters
The standard Iranian layout supplies ۰۱۲۳۴۵۶۷۸۹ on its numeral layer. Some applications override the keyboard and display ASCII digits according to document settings, so paste a sample into plain text if you need to verify the stored code points.
Persian uses the Arabic-script comma ،, semicolon ؛, and question mark ؟, all distinct from their ASCII counterparts. On the common standard desktop layout, the question mark is on the shifted slash key; Persian comma and semicolon are also on shifted positions. Because exact shifted positions vary on phones and across operating systems, open the visible keyboard map and choose the symbols by shape. The full stop ., colon :, parentheses, and slash use shared Unicode characters.
این پوشه ۴۸۲۷ فایل دارد.
in pushe chahâr hezâr-o-hashtsad-o-bist-o-haft fâyl dârad
This folder contains 4,827 files.
آیا فایل آماده است؟
âyâ fâyl âmâde ast?
Is the file ready?
نان، پنیر و چای خریدیم.
nân, panir va chây kharidim
We bought bread, cheese, and tea.
The punctuation page covers Persian punctuation and bidirectional placement; the Persian digits page compares all three digit sets learners encounter.
A reliable typing sequence
For each sentence, follow the stored reading order:
- Switch to the Persian layout and confirm it with ک and ی.
- Type the first Persian word from its first letter to its last.
- Insert ordinary spaces only between words and ZWNJ inside standard affixed forms.
- Type a multi-digit number in normal place-value order; the bidirectional algorithm keeps it internally left to right.
- Enter sentence-final punctuation after the final word, even though it appears at the visual left edge.
نسخهی نهایی را تا ساعت ۵ بفرستید.
noskhe-ye nehâyi râ tâ sâ'at-e panj beferestid
Send the final version by five o'clock.
Mixed Latin text forms a left-to-right island. Type the Latin run on the Latin keyboard, then switch back and continue the Persian sentence in logical order. Cursor movement can look surprising around neutral characters such as parentheses and slashes; random spaces and manual reversal make the underlying string worse, not better.
Checking what you actually typed
Visual inspection is necessary but insufficient. Persian ک and Arabic ك can be nearly identical in some fonts, and a ZWNJ is invisible. Use find-and-replace or a Unicode-aware editor to search for Arabic ك, ي, and ى in a Persian document. Reveal format characters when debugging half-spaces. Copy a suspicious word into a code-point inspector if search or sorting behaves unexpectedly.
The correct Persian spellings use U+06A9 ک, U+06CC ی, and U+200C at required half-spaces. Avoid copying decorative presentation forms from PDFs or social media. A font can repair appearance; it cannot repair the stored identity of the characters.
Register and real-world input
The encoding rules are the same in (written-standard), (formal), (academic), and (literary) text. Informal messages may contain ASCII digits, omitted ZWNJs, or Arabic code points because of device limitations (informal). Those forms are common evidence of keyboard friction, not a separate Iranian Persian orthographic system.
Colloquial Tehran spelling can represent spoken forms deliberately (colloquial: Tehran), but it should still use Persian ک/ی, Persian punctuation, and stable boundaries. Register choice changes the words you type; it does not make corrupted Unicode harmless.
Common Mistakes
1. Selecting an Arabic layout and producing Arabic kaf and yeh. The word may look close, but the code points are wrong for Persian.
❌ كتاب من اينجاست.
Incorrect Persian encoding — Arabic ك and ي were entered.
✅ کتاب من اینجاست.
ketâb-e man injâst
My book is here.
2. Typing the visible leftmost letter first. Persian is stored in reading order, not reverse screen order.
❌ باتک
Incorrect for ketâb — the letters were entered backward.
✅ کتاب
ketâb
book
3. Using a hyphen instead of ZWNJ. The marks have different code points and functions.
❌ من فردا می-روم.
Incorrect standard input — the visible hyphen is not a Persian half-space.
✅ من فردا میروم.
man fardâ mi-ravam
I am going tomorrow.
4. Leaving Latin digits and a Latin question mark in Persian prose. Switch back to the Persian layer before entering them.
❌ کلاس ساعت 10 شروع میشود?
Incorrect Persian typography — ASCII digits and a Latin question mark were used.
✅ کلاس ساعت ۱۰ شروع میشود؟
kelâs sâ'at-e dah shoru' mi-shavad?
Does the class start at ten?
5. Typing spaces between letters to force disconnected shapes. Fonts shape a word automatically.
❌ د ا ن ش گ ا ه
Incorrect — letter-by-letter spaces destroy the word دانشگاه.
✅ دانشگاه
dâneshgâh
university
Key Takeaways
Use the standard Iranian Persian layout, type base letters in logical order, and verify ک, ی, Persian digits, Persian punctuation, and U+200C. Let the shaping engine create cursive forms. A clean Persian document is not merely visually convincing: its invisible boundaries and code points must also be correct.
Now practice Farsi
Reading grammar gets you part of the way. The exercises are where it sticks — free, no signup needed.
Start learning Farsi →Related Topics
- Right-to-Left Reading and Mixed-Direction TextA1 — Understand Persian visual order, logical character order, punctuation, numbers, and Latin insertions in right-to-left lines.
- Persian Kaf and Yeh: ک and یA1 — Recognize, type, and search with the Persian forms ک and ی instead of their deceptively similar Arabic Unicode counterparts.
- Spaces, Half-Spaces, and the Zero-Width Non-JoinerA2 — Learn how Persian distinguishes word spaces, invisible half-spaces, and natural cursive breaks inside a word.
- Persian Punctuation: ، ؛ ؟ and MoreA2 — Use Persian commas, semicolons, question marks, quotation marks, and brackets correctly in right-to-left text.
- Persian Digits ۰۱۲۳۴۵۶۷۸۹A2 — Read and type Persian digits, keep multi-digit numbers in place-value order, and use Persian decimal and thousands separators.
- Unicode Forensics for Persian EditorsC2 — Diagnose invisible controls, presentation forms, confusable Persian characters, and clean text without changing its linguistic skeleton.