Typed Arabic on an English Keyboard? How to Fix It Instantly
Why 'hgsghl ugd;l' means 'السلام عليكم', how the Arabic 101 keyboard maps to QWERTY, lam-alef and hamza keys, and fixing text typed in the wrong layout.

Typed Arabic on an English Keyboard? How to Fix It Instantly
You look up from the keyboard after typing a long Arabic message and see "hgsghl ugd;l ,vplm hggi ,fv;hji" on the screen. The keyboard was still on English. The good news: nothing is lost. Each key gives one fixed letter in each layout, so the text can be turned back exactly. The Arabic Keyboard Layout Fixer does that in one click, in both directions.
Why it happens
Most computers in the Arab world have two layouts, Arabic and English, switched with Alt+Shift on Windows or Ctrl+Space or Cmd+Space on a Mac. It is easy to forget which one is active, especially after switching windows. The result is either Latin gibberish where you meant Arabic, or Arabic gibberish where you meant an email address or a password.
The key map
The standard Arabic layout, known as Arabic (101), puts the letters on the same physical keys as QWERTY:
| QWERTY | q | w | e | r | t | y | u | i | o | p | [ | ] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Arabic | ض | ص | ث | ق | ف | غ | ع | ه | خ | ح | ج | د |
| QWERTY | a | s | d | f | g | h | j | k | l | ; | ' |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Arabic | ش | س | ي | ب | ل | ا | ت | ن | م | ك | ط |
| QWERTY | z | x | c | v | b | n | m | , | . | / |
|---|---|---|---|---|---|---|---|---|---|---|
| Arabic | ئ | ء | ؤ | ر | لا | ى | ة | و | ز | ظ |
The key left of 1 gives ذ. With Shift: H gives أ, Y gives إ, N gives آ, K gives the Arabic comma ، and the question mark key gives ؟.
Decoding a famous example
"hgsghl ugd;l" letter by letter:
- h → ا, g → ل, s → س, g → ل, h → ا, l → م: السلام
- u → ع, g → ل, d → ي, ; → ك, l → م: عليكم
The three modes
- Auto-detect and fix: each line is checked; lines with mostly Latin letters are turned into Arabic, lines with mostly Arabic letters into English.
- English keys to Arabic: the common case, for messages typed in the wrong layout.
- Arabic keys to English: for emails, links, usernames and passwords typed while the Arabic layout was on. "ؤخىفشؤف" is "contact".
The lam-alef key
On the Arabic layout, the B key gives لا as a single keystroke. The fixer maps it both ways, so "lam-alef" never breaks a word.
Passwords
If a password does not work, try converting it: the system may have received the Arabic letters for the keys you pressed. Do this only on a page you trust; this tool runs locally and sends nothing anywhere.
Avoiding the problem
- Show the language indicator on the taskbar or menu bar.
- On Windows, set a separate layout per app window.
- On phones, use a keyboard that shows the current language on the space bar.
Other layouts
Apple's "Arabic" layout matches the 101 layout for letters. Some systems also offer "Arabic - PC" or "Arabic - QWERTY", which place a few letters differently; if a handful of letters come out wrong, your keyboard uses one of these.
On phones
Phone keyboards rarely cause this problem, because they show the current language on the keys. It happens most on laptops and desktop computers, especially shared ones. If you often switch languages, turn on the on-screen language indicator, or use a keyboard sticker with Arabic letters on the keys. Typing practice on the Arabic layout also builds speed, so you look at the screen instead of the keys.
Limits
The fixer maps letters and the main symbols. Diacritics typed with Shift and some rare symbols are not mapped. Your text stays in your browser.


&c=%23c2410c&k=education)
