Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Writing tools

Persian keyboard

Write Farsi with taps on the screen or with the keys of the keyboard you own. Peh, tcheh, jeh and gaf are all there, plus the half-space and Persian digits. Copy the text when it is ready. It stays on your device.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Tap the keys below, or press the keys on your own keyboard.
Persian keyboard
Extra
Text direction
Typing
  • Runs in your browser
  • Shift and AltGr change the keys
Characters
9
Words
2
Last characters
U+0645 U+0020 U+062F U+0646 U+06CC U+0627

How to use the Persian Keyboard

  1. Tap letters on the Persian keyboard panel. They appear in Your text at the cursor.
  2. For the half-space, press the ZWNJ button in the Extra row. The Persian digits ۰ to ۹ are in that row too.
  3. With a computer keyboard, keep My keys type this layout ticked: the D key then gives ی and the semicolon key gives ک.
  4. Choose a Text size that suits you and press Copy text.

How do I type Persian (Farsi) with an on-screen keyboard?

Tap a letter and it joins the text at the cursor. The text box is set to run from right to left. A switch under the keyboard changes it if you are typing a line that starts with English. Backspace, the new-line arrow and Clear work the way you would expect.

A first word to try is سلام ("hello"). Its letters sit on the S, G, H and L keys. After four taps the page counts four characters and prints their codes: U+0633, U+0644, U+0627 and U+0645.

The positions are those of the Windows layout called Persian, identifier 00000429. The sound of a letter does not tell you where its key is, so learn by rows. The home row helps: ش س ی ب ل ا ت ن م ک گ runs left to right under your fingers.

The number row types the ordinary digits. If you want Persian digits, use the buttons in the Extra row. They write ۱ ۲ ۳ and the rest, which Unicode lists as the Eastern Arabic-Indic digits and gives a single sequence for Persian, Sindhi and Urdu.

Which keys type پ, چ, ژ, گ and ک?

Persian adds several letters to the Arabic alphabet. The layout puts them on keys that an Arabic keyboard uses for something else. Peh پ takes the backslash key, to the right of the letters. Tcheh چ takes the right square bracket key. Gaf گ takes the apostrophe key, and keheh ک takes the semicolon key.

Jeh ژ is the one on Shift: hold Shift and press C. Farsi yeh ی, the yeh that Persian uses, has the D key to itself.

Persian letters that the Arabic (101) layout lacks, and their keys
LetterNameKey
پPeh\
چTcheh]
ژJehShift + C
گGaf'
کKeheh;
یFarsi YehD

Which yeh, heh and hamza forms does the keyboard type?

Several letters here look almost the same, so each has its own key. The two yehs matter most. The Persian yeh ی is on D. The Arabic yeh ي is on Shift with X. The Unicode Standard says the Farsi yeh shows its two dots below only in initial and medial position, while the Arabic yeh keeps them everywhere. Mixing them is a common slip, and it changes the code even when the shape looks right.

The plain heh ه is on I, teh marbuta ة is Shift with Z, and ۀ (heh with yeh above) is Shift with G. Alef has four forms: plain ا on H, آ on Shift with H, أ on Shift with N and إ on Shift with B. Hamza ء is Shift with M, and the carriers ؤ and ئ sit on Shift with V and on M.

Yeh, heh, alef and hamza forms in the Persian layout
LetterNameKey
یFarsi YehD
يYehShift + X
هHehI
ةTeh MarbutaShift + Z
ۀHeh With Yeh AboveShift + G
اAlefH
آAlef With Madda AboveShift + H
أAlef With Hamza AboveShift + N
إAlef With Hamza BelowShift + B
ؤWaw With Hamza AboveShift + V
ئYeh With Hamza AboveM
ءHamzaShift + M

What is the half-space (ZWNJ), and how do I type it in Persian?

The half-space is an invisible character called the zero width non-joiner, or ZWNJ. It splits two letters that would otherwise join, without leaving the gap of a full space. The Unicode Standard names the Persian plural suffix as a place for it, and warns that leaving it out can change the meaning or produce nonsense.

Take the word for "books", کتاب‌ها. Type ک, ت, ا, ب, then press ZWNJ, then ه and ا. The ZWNJ makes the ها ending stand apart from the stem, yet the two parts still read as one word. In this tool the count shows seven characters for the word, because the invisible one is counted. The code list shows it as U+200C.

The layout itself gives the half-space on a Ctrl and Shift key combination, which a phone cannot press. That is why it is a button in the Extra row. Next to it are the zero width joiner, which forces letters to connect, and the left-to-right and right-to-left marks, which keep numbers and English words in order inside Persian lines.

How do I type Persian quotes, the comma, the question mark and vowel marks?

Persian text uses rounded guillemets « » for quotation marks, as the Unicode Standard notes. Here they are Shift with K and Shift with L. The Persian comma ، is Shift with T, the semicolon ؛ is Shift with Y and the question mark ؟ comes from Shift plus the / key. A separate key types the whole word ريال (rial) at once: Shift with R.

Persian punctuation and the rial word
SignNameKey
«Left-Pointing Double Angle Quotation MarkShift + K
»Right-Pointing Double Angle Quotation MarkShift + L
،CommaShift + T
؛SemicolonShift + Y
؟Question MarkShift + /
ريالRial (word)Shift + R

The vowel marks are optional in Persian writing and are mostly left out. When you need one, type the letter first and the mark after it. The seven marks are on Shift, and they show on a dotted circle on the board so you can tell them apart.

Which marks are on the Shift layer?

The three short vowel marks are fatha, damma and kasra, on the left side of the home row. Shadda doubles a consonant and is on F. The doubled marks (fathatan, dammatan, kasratan) are on the top row, on Q, W and E.

Marks on the Shift layer
MarkNameKey
◌َFathaShift + A
◌ُDammaShift + S
◌ِKasraShift + D
◌ّShaddaShift + F
◌ًFathatanShift + Q
◌ٌDammatanShift + W
◌ٍKasratanShift + E

Use it with

Questions

How do I type Persian on a computer that has no Persian keyboard?

Keep "My keys type this layout" ticked and press your keys. Each one types the Persian letter that sits on it in the Windows Persian layout. Tapping the on-screen letters works too.

Where are پ, چ, ژ and گ on the keyboard?

پ is on the backslash key, چ on the right square bracket key, گ on the apostrophe key, and ژ is Shift with C.

How do I type the half-space in Persian?

Press the ZWNJ button in the Extra row. It is invisible and splits two letters without a gap. Unicode names the Persian plural suffix as a use.

How do I write Persian digits ۱ ۲ ۳?

Press the digit buttons in the Extra row. The top row of keys gives the Western digits instead.

What is the difference between ی and ي?

ی (Farsi yeh) is on D and ي (Arabic yeh) is Shift with X. Unicode says the Farsi yeh has dots below only in initial and medial position.

Which layout does this use?

The layout Microsoft lists as Persian, keyboard identifier 00000429.

The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.