Black Friday 76% off Levers, until 5 December
More apps from us

Guide

How to make Caps Lock an Escape key on a Mac

Atta 🐬

Maker of Levers

Updated

Quick answer

Open System Settings › Keyboard, click Keyboard Shortcuts…, then Modifier Keys in the sidebar. Choose your keyboard in Select keyboard, open the menu next to Caps Lock (⇪) key and choose ⎋ Escape, then click Done. The setting is kept for each keyboard, so do it again for every keyboard you use; Restore Defaults puts the keys back.

Levers makes Caps Lock Escape, or a Hyper key that macOS can’t make, with one click.

How to make Caps Lock an Escape key

  1. 1

    Choose Apple menu › System Settings, then click Keyboard in the sidebar. You may need to scroll down.

  2. 2

    Click Keyboard Shortcuts…, then click Modifier Keys in the sidebar.

  3. 3

    If more than one keyboard is connected, choose the one you’re changing in the Select keyboard menu.

  4. 4

    Open the menu next to Caps Lock (⇪) key and choose ⎋ Escape.

  5. 5

    Click Done. Caps Lock now does what the Esc key does.

The same menu can make Caps Lock Control, Option, Command, or nothing at all with No Action.

Caps Lock sits in one of the easiest places to reach on the keyboard and gets used least, which is why people who press Escape all day, in Vim or to close dialogs, move Escape there. macOS has a setting for it built in. What it can’t do is make Caps Lock a Hyper key, four modifiers at once for shortcuts no app uses. The table shows what each way can do.

Ways to remap Caps Lock on a Mac

WayCaps Lock as EscapeCaps Lock as a Hyper keyEvery keyboard at onceKept after a restart
Modifier Keys in System Settings Yes No Set for each keyboard Yes
hidutil in Terminal Yes No Yes No
Levers Yes Yes Yes Set again each time Levers opens

Yes Partly No

How to undo Caps Lock to Escape

Go back to System Settings › Keyboard › Keyboard Shortcuts… › Modifier Keys, choose the keyboard, and set Caps Lock (⇪) key to ⇪ Caps Lock again. Or click Restore Defaults to put every modifier key on that keyboard back as it came.

Why does Caps Lock still work as Caps Lock on my other keyboard?

Modifier Keys is kept for each keyboard. A Magic Keyboard on your desk and the MacBook’s own keyboard each have their own setting, so choose each one in Select keyboard and set Caps Lock there too.

How to remap Caps Lock in Terminal

macOS’s keyboard driver can remap a key for every keyboard at once, with the hidutil command. The first command, from Apple’s technical note on remapping keys, makes Caps Lock Escape. The second clears the remapping and makes Caps Lock itself again.

hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}'
hidutil property --set '{"UserKeyMapping":[]}'

A remapping made this way lasts until you restart the Mac, or until the last keyboard is disconnected. For one that stays, use Modifier Keys.

Can a Mac make Caps Lock a Hyper key?

Not by itself. A Hyper key is one key that presses Control, Option, Shift and Command together. No app uses all four for its own shortcuts, so Hyper with a letter is free for shortcuts of your own: to open an app, run a shortcut, or move a window.

Modifier Keys lets Caps Lock become one modifier, never four, and hidutil swaps one key for another. A Hyper key needs an app that watches the keyboard and adds the modifiers as you type, such as Levers or Karabiner-Elements.

Once you have one, use it anywhere a shortcut can be recorded, for example in System Settings › Keyboard › Keyboard Shortcuts… › App Shortcuts: hold Caps Lock and press the key, and the shortcut is recorded as Control-Option-Shift-Command and that key.

Or remap Caps Lock with one click in Levers

We make Levers.

Levers’ Remap Caps Lock switch makes Caps Lock an Escape key, or a Hyper key: hold Caps Lock and every key you press comes with Control, Option, Shift and Command, while Caps Lock pressed alone types nothing. It goes through macOS’s own keyboard driver, the way the hidutil command does, so it covers every keyboard at once, and Levers sets it again each time it opens. Turn the switch off and Caps Lock is Caps Lock again.

  • Remap Caps Lock
  • Escape or a Hyper key, picked on the switch’s page
  • Every keyboard at once, without setting each one
  • A keyboard shortcut of your own to turn it on and off

Good to know

  • Levers remaps Caps Lock only, not other keys, and the Hyper key needs Accessibility permission for Levers. Turning the switch off also clears any other remapping you made with hidutil.
  • Needs macOS 15 Sequoia or later.
  • One payment, no subscription, with a 14-day refund.

Questions people ask

How do I make Caps Lock an Escape key on a Mac?

Open System Settings › Keyboard, click Keyboard Shortcuts…, then Modifier Keys. Choose your keyboard in Select keyboard, set Caps Lock (⇪) key to ⎋ Escape, and click Done.

Does Caps Lock to Escape work on every keyboard?

Not with Modifier Keys: it’s kept for each keyboard, so set it for the built-in keyboard and for each one you connect. The hidutil command in Terminal covers every keyboard at once, until the Mac restarts.

How do I turn Caps Lock back to normal?

In System Settings › Keyboard › Keyboard Shortcuts… › Modifier Keys, set Caps Lock (⇪) key to ⇪ Caps Lock, or click Restore Defaults.

What is a Hyper key on a Mac?

One key that presses Control, Option, Shift and Command at once. Since no app uses all four for its shortcuts, Hyper with a letter is free for your own. macOS can’t make one by itself; it takes an app such as Levers or Karabiner-Elements.

Is there an app that makes Caps Lock Escape or a Hyper key?

Yes. Levers makes Caps Lock an Escape key or a Hyper key with one click, on every keyboard at once, and turns it back into Caps Lock with another. It costs from $6.99, paid once.

More guides