sodcalculator

10 Tech How-To

How to Type Hashtag on Mac Keyboard

Guide 10-53760 · Updated · Step by step

Typing a hashtag (#) on a Mac can be confusing because the key isn’t always labeled clearly, and it depends on your keyboard layout and region settings. This guide shows you the exact key combinations for US, UK, and other international Mac keyboards, plus how to fix it if the symbol doesn’t appear.

What You’ll Need

  • A Mac with a keyboard (built-in, Magic Keyboard, or external)
  • Your keyboard layout set correctly in System Settings (optional but helpful)

Step-by-Step

  1. Identify your keyboard layout. Go to → System Settings → Keyboard → Input Sources. Check which layout is listed (e.g., “ABC” or “U.S.” for US, “British” for UK). This determines which keys you press.
  2. For US keyboard layout: Press Shift + 3 simultaneously. The # symbol appears. This is the most common method on US Macs.
  3. For UK keyboard layout: Press Option (Alt) + 3 simultaneously. On UK Macs, Shift + 3 gives you the pound sterling symbol (£), so you need Option instead.
  4. For other international layouts (e.g., French, German, Spanish): The key combination varies. Common ones include:
    • French (AZERTY): Option + 3 (on some layouts, it’s Alt Gr + 3)
    • German: Option + 3 (or Alt Gr + # on PC keyboards)
    • Spanish: Option + 3 (on some, it’s Alt Gr + 3)

    If these don’t work, use the Character Viewer (step 5).

  5. Use the Character Viewer as a universal fallback: Press Control + Command + Space to open the Character Viewer. In the search box, type “number sign” or “hash” and double-click the # symbol to insert it.
  6. Test your key: Open any text app (like TextEdit) and press the combination you think is right. If you get a different symbol (like £ or €), you’re on the wrong layout or need a different modifier key.

Common Mistakes

  • Using Shift + 3 on a UK keyboard: This gives you £, not #. UK users must use Option + 3.
  • Not checking the Input Source: If your Mac is set to “British” but you have a US keyboard, or vice versa, the symbols won’t match the keycaps. Always verify the layout in System Settings.
  • Pressing Option + 3 on a US keyboard: This gives you the “fl” ligature or nothing at all, not #. US users must use Shift + 3.
  • Assuming all Macs are the same: Apple keyboards sold in different regions have different printed symbols. The key that says “3” may have # above it or not.

Tips

  • Memorize your layout: If you’re on a US layout, remember “Shift + 3”. If you’re on UK, remember “Option + 3”. Write it on a sticky note if needed.
  • Use the on-screen keyboard: Go to System Settings → Keyboard → Show Keyboard Viewer (or use the input menu in the menu bar). This shows you exactly which keys produce which symbols.
  • Create a text replacement: If you type # frequently, you can set up a text replacement in System Settings → Keyboard → Text Input → Text Replacements. For example, type “hash” and have it replace with “#”.
  • Use the Option key as a modifier: Pressing Option while pressing a key often produces special symbols. Explore the keyboard viewer to see what’s available.

Troubleshooting

If the # symbol doesn’t appear when you press the expected keys:

  1. Check your Input Source: Go to System Settings → Keyboard → Input Sources. If you see more than one layout, click the input menu icon in the menu bar (top right) and select the one that matches your physical keyboard (e.g., “ABC” for US).
  2. Try the other common combination: If Shift + 3 doesn’t work, try Option + 3. If that doesn’t work, try Control + Option + 3 or Command + 3 (though the latter may trigger a system action).
  3. Use the Character Viewer: Press Control + Command + Space, search for “hash” or “number sign”, and double-click to insert. This always works regardless of layout.
  4. Check if your keyboard is set to a different layout: Some external keyboards have a physical switch (e.g., Windows vs Mac mode). Ensure it’s set to Mac mode.
  5. Restart your Mac: Rarely, keyboard input can glitch. A restart usually fixes it.
  6. Verify with a different app: Some apps (like code editors) may remap keys. Test in a plain text editor to rule that out.

Frequently Asked Questions

Why does Shift + 3 give me £ instead of #?

Your keyboard layout is set to “British” (or UK). On UK Macs, Shift + 3 is the pound sterling symbol. Use Option + 3 instead to get #.

I have a US Mac but # isn’t working. What’s wrong?

Check your Input Source in System Settings. If it’s set to a different layout (like British or French), the keys will produce different symbols. Switch it to “ABC” or “U.S.”

Is there a universal shortcut for # on any Mac?

No single key combination works on every Mac because it depends on the keyboard layout. The Character Viewer (Control + Command + Space) is the universal method.

How do I type # on a MacBook Pro with Touch Bar?

The Touch Bar doesn’t change the physical keyboard. Use the same key combination as your layout (Shift + 3 for US, Option + 3 for UK). If the Touch Bar shows symbols, you can tap # if it appears in the suggestions, but it’s not a standard key.

Can I remap a key to type # faster?

Yes. Go to System Settings → Keyboard → Keyboard Shortcuts → Modifier Keys, but that only remaps modifier keys. For a specific character, use text replacement: set “hash” to replace with “#”.

Does the # key work differently in different apps?

No, the key itself produces the same character. However, some apps (like social media or code editors) may use # for special functions (e.g., markdown headings). The character inserted is still #.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →