Text tools

Wrong keyboard layout converter

Turn text typed with the wrong keyboard — English letters instead of Persian, or the other way round — into the text you meant.

For when Caps Lock was on, or a program capitalised the first letter of a sentence by itself.

This tool runs entirely inside your browser. No file or text is sent to any server.

How to use

  1. Type or paste the text you wrote with the wrong keyboard into the upper box. To just try the tool, press “Insert an example”.
  2. The tool picks “Convert to Persian” or “Convert to English” by itself, from the letters of the text. If the result is not right, press the other button.
  3. The result appears in the lower box at once. Press “Copy” and take it.

Notes on this tool

The tool does not translate and does not guess: it presses the same keys again on the other keyboard. The key d on the English keyboard is the key «ی» on the Persian one, and so is every other letter.

Only characters that have a key on the target keyboard change. Spaces, new lines, Latin digits and marks that are the same on both keyboards (like the full stop and the exclamation mark) stay as they are, and so do letters of the other language. So if only part of your text was typed wrongly, only that part changes.

Digits work one way: going to English, Persian digits become Latin ones; going to Persian, Latin digits stay as they are, because the digit keys are the same on both keyboards. To make digits Persian, use the digit converter.

Until you press one of the two buttons yourself, the tool counts the letters with every change of the text and takes the direction that has more of them: mostly English goes to Persian, mostly Persian goes to English. Once you press a button the choice is yours, until you empty the upper box or press “Reset”.

Everything happens inside your browser and the text is never sent anywhere. There is no limit on the length of the text.

Frequently asked questions

Why did what I typed turn into meaningless letters?
Because every key on the keyboard has a letter for each language, and you typed while the keyboard was set to the other one. Nothing is lost: it was simply typed with the keys of the other language. That is why the Persian «سلام» typed on the English keyboard comes out as sghl, and the English hello typed on the Persian keyboard comes out as «اثممخ». Which letter a key gives is set by the keyboard layout.
Why did some capital letters turn into marks or vowel signs?
A capital letter means the key was pressed with Shift, and on the Persian keyboard the Shift version of a key is something else: H becomes «آ», C becomes «ژ», T becomes «،», and A, S and D become the vowel signs fatha, damma and kasra. That is exactly what the Persian keyboard would have written. If the capitals were only there because Caps Lock was on, or because a program capitalised the first letter of a sentence, turn on “Read capital letters as small ones”.
Does it also work for a phone keyboard or another layout?
The tool is set to the default Persian layout of Windows, the one on most computers in Iran. In the new standard layout of Windows 11 the letters of the ordinary keys are almost the same and only «پ» and «ئ» have moved, but the Shift letters and marks differ. A phone keyboard is laid out differently from a computer one too; so for text typed on a phone or with another layout, some letters may not come out right.
How do I avoid the mistake in the first place?
Before typing, look at the keyboard language in the Windows taskbar, next to the clock. In Windows, Alt+Shift or Windows+Space changes it. And if you do get it wrong once, there is no need to delete the text: this tool puts it right.

Related tools