The layout at a glance
This Farsi virtual keyboard mirrors the layout used on physical Farsi keyboards, whose top row begins with ضصثقفغ. Its 47 character keys reach the 53 letters of the Arabic script (U+0600–U+06FF, U+FB50–U+FEFF) straight from the browser, with nothing to install.
The layout reaches 74 characters that an ordinary Latin keyboard does not carry: « » × ÷ ، ؟ ء آ أ ؤ إ ئ ا ب ة ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ـ ف ق ك ل م ن ه.
The script reads right to left: the caret, punctuation and digits follow that direction automatically.
| Script | Arabic |
| Key order | ضصثقفغ |
| Reading direction | Right to left |
| Character keys | 47 |
| Letters available | 53 |
| Non-ASCII characters | 74 |
| Unicode range | U+0600–U+06FF, U+FB50–U+FEFF |
| Third layer (AltGr) | No |
| Transliteration | No |
How to type in Farsi
- Click the on-screen keys or type on your physical keyboard — both write into the same text area.
- Shift shows the second layer of every key: capitals and the characters printed at the top right.
- The Copy button puts the whole text on the clipboard, ready to paste into an email, a document or a form.
- 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.
| Key | With Shift | With AltGr |
| ÷ | — | — |
| ۱ | ! | — |
| ۲ | ٬ | — |
| ۳ | ٫ | — |
| ۴ | ﷼ | — |
| ۵ | ٪ | — |
| ۶ | × | — |
| ۷ | ، | — |
| ۸ | * | — |
| ۹ | ) | — |
| ۰ | ( | — |
| - | ـ | — |
| = | + | — |
| ض | ْ | — |
| ص | ٌ | — |
| ث | ٍ | — |
| ق | ً | — |
| ف | ُ | — |
| غ | ِ | — |
| ع | َ | — |
| ه | ّ | — |
| خ | ] | — |
| ح | [ | — |
| ج | } | — |
| چ | { | — |
| \ | | | — |
| ش | ؤ | — |
| س | ئ | — |
| ی | ي | — |
| ب | إ | — |
| ل | أ | — |
| ا | آ | — |
| ت | ة | — |
| ن | » | — |
| م | « | — |
| ک | : | — |
| گ | " | — |
| ظ | ك | — |
| ط | ٓ | — |
| ز | ژ | — |
| ر | ٰ | — |
| ذ | | — |
| د | ٔ | — |
| پ | ء | — |
| و | > | — |
| . | < | — |
| / | ؟ | — |
The characters on this layout
The 74 characters this layout can produce:
- «
- »
- ×
- ÷
- ،
- ؟
- ء
- آ
- أ
- ؤ
- إ
- ئ
- ا
- ب
- ة
- ت
- ث
- ج
- ح
- خ
- د
- ذ
- ر
- ز
- س
- ش
- ص
- ض
- ط
- ظ
- ع
- غ
- ـ
- ف
- ق
- ك
- ل
- م
- ن
- ه
- و
- ي
- ً
- ٌ
- ٍ
- َ
- ُ
- ِ
- ّ
- ْ
- ٓ
- ٔ
- ٪
- ٫
- ٬
- ٰ
- پ
- چ
- ژ
- ک
- گ
- ی
- ۰
- ۱
- ۲
- ۳
- ۴
- ۵
- ۶
- ۷
- ۸
- ۹
-
- ﷼
Other keyboards in the Arabic script
These keyboards are written in the same script and share much of their character set.
Further reading
Persian ی and ک vs Arabic ي and ك
The most common error in Persian text is invisible. Arabic has its own yeh (ي, U+064A) and kaf (ك, U+0643), and Persian uses different code points: ی (U+06CC) and ک (U+06A9). Text typed on an Arabic keyboard, or copied from an Arabic source, often contains the Arabic forms. Mid-word they look the same, but search and spell checking treat them as different letters. A site search for کتاب won't find كتاب.
You can tell them apart at the end of a word. Persian ی has no dots there (علی), while Arabic ي keeps two dots below. Persian ک has a plain top stroke, while Arabic ك has a small mark inside.
On this layout, the key in the D position types Persian ی, and ک is on the ; key, just right of م. Shift+D gives Arabic ي, and Shift+Z gives Arabic ك. Those two are there for quoting Arabic, so avoid them in Persian text.
نیمفاصله: the half-space (ZWNJ) in words like میخواهم
Persian separates some parts of a word without a full space. Examples are the prefix می and نمی (میخواهم, نمیدانم), the plural ها (کتابها), and endings after silent ه (خانهای). The separator is the zero-width non-joiner (ZWNJ, U+200C). It stops the letters from joining but keeps the word together.
Without it, people write میخواهم, which is joined, or می خواهم. The full space is worse, because the line can break mid-word and search sees two words.
On this page, Shift+B types the ZWNJ. With Shift held, that key is labelled "ZWNJ". For میخواهم, type می, press Shift+B, then type خواهم. It is invisible, but the letters on either side stop joining. On the Windows "Persian (Standard)" layout, ZWNJ is Shift+Space.
Persian digits, punctuation and other characters on this layout
The number row types Persian digits ۱۲۳۴۵۶۷۸۹۰ (U+06F0–U+06F9), as used in Iran. These are separate characters from the Arabic-Indic ٠١٢٣٤٥٦٧٨٩ used in Arab countries, and ۴, ۵ and ۶ are drawn differently. Some websites reject Persian digits in phone numbers and verification codes. For those fields, turn off physical keyboard mode and type the digits on your own keyboard.
With Shift:
- ٬ thousands separator (Shift+2) and ٫ decimal separator (Shift+3)
- ﷼ rial sign (Shift+4) and ٪ percent (Shift+5)
- ، Persian comma (Shift+7)
- ؟ question mark (Shift + the
/ key)
The Persian quotation marks are on Shift+L («) and Shift+K (»). آ, as in آب and آمریکا, is Shift+H. Tanvin ً, needed for words like اصلاً and واقعاً, is Shift+R. The other diacritics are on Shift along the Q row. The hamza forms أ ؤ ئ ء are on Shift+G, A, S and M, and the hamza above (ٔ), used in خانهٔ, is on Shift+N.
To install Persian on Windows, go to Settings → Time & language → Language & region → Add a language → Persian and choose the Persian (Standard) keyboard. On macOS, go to System Settings → Keyboard → Text Input → Edit → +. On Android (Gboard) and iPhone, add Persian (Farsi) in the keyboard settings. For Urdu, which needs extra letters such as ٹ and ڈ, use the Urdu keyboard.
Frequently Asked Questions
How do I type Persian/Farsi characters?
Click on the Persian letters on the virtual keyboard. Persian uses a modified Arabic script with 32 letters, written right-to-left.
What is the Persian alphabet?
Persian uses Arabic script with 4 additional letters (پ، چ، ژ، گ) not found in Arabic. It has 32 letters total and is written right-to-left.
How do I type Persian-specific letters (پ، چ، ژ، گ)?
Persian has 4 unique letters: پ (p), چ (ch), ژ (zh), گ (g). These have dedicated keys on Persian keyboards and are essential for Persian phonetics.
What's the difference between Persian and Arabic script?
Persian uses Arabic script but adds 4 letters (پ، چ، ژ، گ) and doesn't use some Arabic letters. Persian also has different pronunciation and vocabulary.
How do I type Persian vowel marks?
Persian uses Arabic diacritics (zabar, zir, pish) for vowels, but they're usually omitted in normal writing. They're available on the keyboard for educational purposes.
How do I type numbers in Persian?
Persian uses Eastern Arabic numerals (۰۱۲۳۴۵۶۷۸۹), which are slightly different from Western Arabic numerals. The keyboard provides Persian numerals.
Can I type in Dari with this keyboard?
Yes, Dari (Afghan Persian) uses the same script and letters as Iranian Persian. The keyboard works perfectly for Dari with identical character set.
How do I type the ZWNJ (zero-width non-joiner)?
The ZWNJ (nim-fasele) stops letters from joining inside compound words, as in میخواهم. On this keyboard, type it with Shift+B; on the Windows Persian layout it is usually Shift+Space. It creates an invisible separator.
What is the difference between ک and گ?
ک is the Persian kaf ('k') and گ is gaf ('g'): گ has an extra stroke and represents a different sound. Don't confuse ک with the Arabic kaf ك, a different Unicode character that Persian text avoids (on this page it is on Shift+Z).
How do I type Persian punctuation?
Persian uses both Persian/Arabic punctuation (،؛؟) and Western punctuation. The Persian question mark is ؟ and comma is ،. Modern Persian often uses Western punctuation.