Skip to content

Instantly share code, notes, and snippets.

@zmwangx
Last active February 23, 2026 03:17
Show Gist options
  • Select an option

  • Save zmwangx/10571883 to your computer and use it in GitHub Desktop.

Select an option

Save zmwangx/10571883 to your computer and use it in GitHub Desktop.
Unicode characters for special keys on the Mac keyboard (not necessarily Mac specific). #symbols

⌘ – ⌘ – ⌘ – the Command Key symbol
βŒ₯ – ⌥ – ⌥ – the Option Key symbol
⇧ – ⇧ – ⇧ – the Shift Key symbol
βŒƒ – ⌃ – ⌃ – the Control Key symbol
βŽ‹ – ⎋ – ⎋ – the ESC Key symbol
β‡ͺ – ⇪ – ⇪ – the Capslock symbol
⏎ – ⏎ – ⏎ – the Return symbol
⌫ – ⌫ – ⌫ – the Delete / Backspace symbol
β‡₯ – ⇥ – ⇥ – the Tab Key symbol

Courtesy The Apple Logo in Unicode; Command, Option, & Shift Symbols in Unicode; and Special Key Symbols. The last one is ultra-complete.

@noah-nuebling
Copy link

noah-nuebling commented Jul 20, 2025

Here's another one:

🌐︎ – 🌐︎ – 🌐︎ – the Globe / fn Key symbol

Discussion

Though it looks exactly like it, this is not the globe SF Symbol, it's an emoji with a text-style modifier. See its Wiktionary page.

About the fn and globe SF Symbols

In macOS, the fn SF Symbol seems to be used instead of the globe SF Symbol, unless the attached keyboard reports the "SupportsGlobeKey" property in the IORegistry. (See this StackOverflow post).

I investigated, but came to the conclusion, that the fn SF Symbol probably doesn't have a standard unicode equivalent like 🌐︎. Investigation:
As of macOS 15 (Sequoia), in System Settings > Keyboard > Keyboard Shortcuts..., the textfields only display Unicode characters. So Apple substitutes 🌐︎ for the globe SF Symbol. To substitute the fn SF Symbol, they simply use the character sequence fn (including the trailing space), which strongly suggests that there's no dedicated Unicode substitute.

I hope that was insightful or useful for someone!

@April-June-August
Copy link

@noah-nuebling I was making a tool to search through menu bar items and found this piece of info very helpful. Thank you.

@Sim3-14159
Copy link

Also, different than Return, there is the Enter key: ⌀ – ⌤ – ⌤

I am also making a menu bar in a project, and I found this helpful, too.

@meermanr
Copy link

meermanr commented Feb 4, 2026

Extended list:

Symbol Command Unicode name HTML Entity
⌘ Command Place of interest ⌘
⇧ Shift Upwards white arrow ⇧
βŒ₯ Option Option key ⌥
βŒƒ Control Up arrowhead ⌃
🌐 / fn Globe / fn Globe with meridians 🌐
⏎ Return Return symbol ⏎
⌀ Enter Up arrowhead between two horizontal bars ⌤
⌫ Delete Erase to left ⌫
⌦ Forward delete Erase to right ⌦
⌧ Clear Clear ⌧
β‡₯ Tab Rightwards arrow to bar ⇥ ⇥
⇀ Backtab Leftwards arrow to bar ⇤ ⇤
␣ Space Open box ␣ ␣
βŽ‹ Escape Broken circle with northwest arrow ⎋
β‡ͺ Caps lock Upwards arrow from bar ⇪
⏏ Eject Eject symbol ⏏
β‡ž Page up Upwards arrow with double stroke ⇞
β‡Ÿ Page down Downwards arrow with double stroke ⇟
β†– Home Northwest arrow ↖ ↖
β†˜ End Southeast arrow ↘ ↘
← Left Leftwards arrow ← ←
β†’ Right Rightwards arrow → →
↑ Up Upwards arrow ↑ ↑
↓ Down Downwards arrow ↓ ↓

@Sim3-14159
Copy link

Additionally, there's another Enter key symbol: βŒ… (a "projective"). It's very similar to ⌀ (an "up arrowhead between two horizontal bars"), but it was also used to symbolize a column break.

The projective was used more commonly on Macintosh keyboards to symbolize the Enter key, and the up arrowhead between two bars was more in software menus.

@nicolasmaia
Copy link

Function keys (approximated):

F1:
F2: ☼ (☼)
F3:
F4: πŸ”οΈŽ
F5: πŸŽ™
F6: ☾
F7: βͺ︎
F8: ⏯︎
F9: ⏩︎
F10: πŸ”ˆοΈŽ
F11: πŸ”‰οΈŽ
F12: πŸ”ŠοΈŽ

@Sim3-14159
Copy link

The F1 and F2 keys can be more correctly signified with the πŸ”… and πŸ”† characters, respectively.

Also, F5 has a better alternative instead of πŸŽ™οΈ: 🎀. In my character viewer, πŸŽ™ is labeled as "studio microphone," while 🎀 is labeled as just "microphone." There's also the 🎀︎ character, which looks exactly like the F5 key on my Mac, and, just like how @noah-nuebling commented earlier on the 🌐︎ symbol actually being the same as 🌐, 🎀︎ is the same as 🎀.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment