How to change the keyboard language on a Mac

macOS calls keyboard languages and layouts input sources. Here is how to add one, how to switch between them, why your Mac sometimes switches on its own, and what to do when you have already typed a whole sentence in the wrong one.

Add a keyboard language

  1. Open the Apple menu, then System Settings > Keyboard.
  2. Under Text Input, click Edit next to Input Sources.
  3. Click + at the bottom left, choose the language and the layout, and click Add.
  4. Turn on Show Input menu in menu bar, so you can always see which layout is active.

To remove a layout you no longer use, select it in the same list and click -. Fewer layouts mean fewer accidental switches.

Switch between keyboard languages

If a shortcut does nothing, check System Settings > Keyboard > Keyboard Shortcuts > Input Sources: the shortcuts can be turned off or changed there.

Why does my Mac change the keyboard language by itself?

Typed a whole sentence in the wrong layout?

It happens to everyone who writes in two languages: you start typing, look up, and the text is gibberish, like Hez, zouáre right' on a Hungarian keyboard instead of Hey, you're right!, or ghbdtn instead of привет. macOS has no built-in fix: you have to delete it, switch the layout and type it again.

Typoflip fixes it for you. At the end of each word it notices that the text was typed in the wrong layout, rewrites it, and switches to the right layout, so you can keep typing. If you notice only at the end of a line, press Shift twice and the whole line is rewritten. It works in every app, including Terminal and code editors, and pauses in password fields.

It works with an English layout paired with Czech, French, German, Greek, Hungarian, Russian, Spanish, Turkish or Ukrainian, in both directions.