Fix text typed in the wrong keyboard layout β instantly.
Typed a whole sentence and realized you were in the wrong language? Select the text, press F8, and it's fixed. One key, works everywhere.
Every bilingual typist knows this pain:
You type: akuo
You meant: Χ©ΧΧΧ
Windows has no built-in fix for this. Until now.
- Select the mistyped text
- Press F8
- Done β
| Before | After |
|---|---|
akuo |
Χ©ΧΧΧ |
Χ©ΧΧΧ |
akuo |
vpua yh akr |
ΧΧΧΧ’ ΧΧ Χ©ΧΧ |
- π One key β just F8, no Ctrl+Shift combos
- π Works everywhere β Word, Chrome, VS Code, WhatsApp, Outlook, Excel, Notepad, any app
- πͺΆ Tiny β 2KB script, zero UI, zero tray icons, zero bloat
- π Auto-start β launches with Windows silently
- π Auto-detect β knows if your text is Hebrew or English
- π Open source β read the code, modify it, trust it
- English (US/QWERTY) β Hebrew (Standard Israeli)
Want to add another language pair? PRs welcome! See Contributing.
- Download the latest release
- Extract the ZIP
- Run
LayoutSwitch-Installer.bat - Done β F8 works immediately
The installer will:
- Install AutoHotkey v2 if needed (via winget)
- Copy the script to your Documents folder
- Add it to Windows Startup
- Install AutoHotkey v2
- Download
LayoutSwitch.ahk - Double-click to run
- (Optional) Copy to
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\for auto-start
- Install Hammerspoon (or
brew install --cask hammerspoon) - Download the
mac/folder - Run
bash install.sh - Grant Accessibility permissions: System Settings β Privacy β Accessibility β Hammerspoon β
- Done β F8 works!
The script maps each physical key position between English and Hebrew keyboard layouts. When you press F8:
- Copies selected text to clipboard
- Detects if the text is Hebrew or English (by Unicode range)
- Converts each character using the keyboard position map
- Pastes the corrected text back
No AI, no internet, no API calls. Pure local character mapping.
Windows: Delete %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\LayoutSwitch.ahk
macOS: Delete ~/.hammerspoon/layout-switch.lua and remove the dofile line from ~/.hammerspoon/init.lua
Windows: Windows 10/11 + AutoHotkey v2 (auto-installed)
macOS: macOS 10.15+ + Hammerspoon (free, open source)
| Alternative | Problem |
|---|---|
| Langover | Heavy install, tray icon, shareware |
| KEset | Chrome extension only β doesn't work in Word, WhatsApp, etc. |
| Online converters | Copy β paste β convert β copy β paste back. Tedious. |
| Windows built-in | Doesn't exist β |
| LayoutSwitch | One key. Every app. 2KB. Free. β |
Want to add support for another language pair (Russian, Arabic, French, etc.)?
- Fork this repo
- Add a new
Map()inLayoutSwitch.ahkwith the key mappings - Submit a PR
MIT β do whatever you want with it.
Built by Meir Arad | M Digital
If this saved you time, give it a β