How to Type Macrons on a Keyboard (ā ē ī ō ū)

Disclosure: When you buy something through links on our site, we may earn an affiliate commission.

Used in linguistics, te reo Māori, Japanese romanization, and more — here’s every platform method


A macron is the horizontal bar placed above a vowel — ā, ē, ī, ō, ū — that indicates a long vowel sound. You’ll encounter them in te reo Māori, Latin, Old English, Japanese romanization (Hepburn system), Hawaiian, and various academic and linguistic contexts. Getting them onto the screen efficiently depends entirely on which platform you’re using — but every major platform has a reliable method.


The Characters You Might Need

CharacterDescriptionUnicode
ā / Āa with macron0101 / 0100
ē / Ēe with macron0113 / 0112
ī / Īi with macron012B / 012A
ō / Ōo with macron014D / 014C
ū / Ūu with macron016B / 016A

Mac

Method 1: Long Press on the Vowel Key (Easiest for Occasional Use)

Click and hold any vowel key — a, e, i, o, or u — and a popup appears showing accented variants including the macron version. Either click the macron character or press the number shown beneath it.

This works in most Mac applications with no setup required. It’s the method to reach for if you only need a macron occasionally.

Method 2: Keyboard Shortcut (Fastest for Regular Use)

Press Option + A then the vowel you want to add the macron to:

  • Option + A, then a = ā
  • Option + A, then e = ē
  • Option + A, then i = ī
  • Option + A, then o = ō
  • Option + A, then u = ū

For uppercase, press Option + A then Shift + the vowel.

This is the fastest method for regular macron use on a Mac. Option + A places a floating macron accent, and the next keystroke applies it to the vowel.

Method 3: Māori or Hawaiian Keyboard Layout

If you type te reo Māori regularly, go to System Settings → Keyboard → Input Sources and add the Māori keyboard layout. This is specifically designed for macron use and makes the characters far more accessible for heavy users.


Windows

Windows requires a bit more setup than Mac, but once configured it’s smooth.

Method 1: Alt Codes (No Setup Required)

Hold Alt and type the numeric code on the numpad:

CharacterAlt Code
āAlt + 0257
ĀAlt + 0256
ēAlt + 0275
ĒAlt + 0274
īAlt + 0299
ĪAlt + 0298
ōAlt + 0333
ŌAlt + 0332
ūAlt + 0363
ŪAlt + 0362

Num Lock must be on and you must use the numeric keypad. These codes are harder to memorize than a single shortcut, which is why setting up a dedicated keyboard layout is worth it for anyone who types macrons regularly.

Method 2: US International or Māori Keyboard Layout (Best Long-Term)

Go to Settings → Time & Language → Language & Region → Add a Language or adjust keyboard layouts under your existing language. Adding the Māori keyboard gives you a layout specifically built around macron vowels. With it active, macron vowels are directly accessible without Alt codes.

Alternatively, some users set up AutoHotkey scripts to map macron characters to convenient key combinations system-wide. If you’re comfortable with AutoHotkey, this gives you a fully custom solution.

Method 3: Microsoft Word Only

In Word, go to Insert → Symbol → More Symbols, find the macron vowel you need, and assign it an AutoCorrect trigger. Something like =a expanding to ā is a common setup. This only works inside Word but requires no additional software.


iPhone and iPad

Method 1: Long Press the Vowel Key

Tap and hold any vowel on the iOS keyboard. A row of accented variants pops up — slide your finger to the macron version (it looks like a vowel with a straight bar above it) and release.

This is the built-in method and works everywhere on iOS. The macron character is included in the long-press popup for all five vowels on the standard English keyboard.

Method 2: Text Replacement

Go to Settings → General → Keyboard → Text Replacement and add entries for each macron vowel with convenient triggers — for example =a expanding to ā, =e to ē, and so on. After setup, your triggers auto-expand in any app.

This is the better option if you type macrons frequently — it’s much faster than long-pressing every time.

Method 3: Add Māori Keyboard

Go to Settings → General → Keyboard → Keyboards → Add New Keyboard and add Māori. This gives you a dedicated layout with macron vowels accessible directly without long pressing. Switch between keyboards with the globe icon.


Android

Method 1: Long Press the Vowel Key

Same as iOS — tap and hold any vowel key and accented variants appear including the macron version. Available on most Android keyboards including Gboard.

If your keyboard doesn’t show macron variants on long press, check whether your keyboard has a language setting that needs to include Māori, Hawaiian, or another macron-using language.

Method 2: Add Māori or Hawaiian as a Keyboard Language

In Gboard, go to Settings → Languages → Add Keyboard and add Māori or Hawaiian. Both include macron vowels as primary characters on the layout. Switch between keyboards using the globe icon on the keyboard.

Method 3: Text Replacement (Gboard)

Gboard supports personal dictionary entries. Go to Gboard Settings → Dictionary → Personal Dictionary, select your language, and add shortcuts — =a for ā, and so on. These expand as you type.


Chromebook

Method 1: Unicode Input

Press Ctrl + Shift + U, type the Unicode code point, then press Enter or Space:

  • ā = 0101
  • ē = 0113
  • ī = 012b
  • ō = 014d
  • ū = 016b

For uppercase, use the corresponding uppercase codes from the table at the top of this article.

Method 2: Add Māori Input Method

Go to Settings → Device → Keyboard → Input Methods and add Māori if available in your ChromeOS version. This gives you direct access to macron vowels without Unicode entry.


Linux

Method 1: Unicode Input

Press Ctrl + Shift + U, type the code point, then press Enter. Same codes as Chromebook above. This works consistently across most Linux distributions and desktop environments.

Method 2: Compose Key

With a Compose key enabled, the sequence for macron vowels is Compose + – + vowel (using a hyphen/minus as the macron indicator):

  • Compose + – + a = ā
  • Compose + – + e = ē
  • Compose + – + i = ī
  • Compose + – + o = ō
  • Compose + – + u = ū

For uppercase, use Compose + – + Shift + vowel.

The Compose key method is the most elegant Linux solution for regular macron use once it’s configured. Enable it in your keyboard settings under Compose Key options.

Method 3: Māori or Custom Keyboard Layout

Most Linux desktop environments allow adding the Māori keyboard layout through input method settings. XKB-based systems support it under the New Zealand locale options.


Microsoft Word (Any Platform)

Method 1: Insert Symbol with AutoCorrect

Go to Insert → Symbol → More Symbols, find the macron vowel, click AutoCorrect, and assign a trigger. Set up one entry per vowel — =a for ā, =e for ē, and so on. After setup, Word converts your triggers automatically as you type.

Method 2: Alt + X

Type the Unicode code point then immediately press Alt + X:

  • Type 0101 then Alt + X = ā
  • Type 0113 then Alt + X = ē
  • Type 012b then Alt + X = ī
  • Type 014d then Alt + X = ō
  • Type 016b then Alt + X = ū

The Best Setup for Regular Macron Typing

If you type macrons regularly — for academic work, te reo Māori, or any language that uses them consistently — the one-off methods above will frustrate you quickly. The right long-term solution depends on your platform:

Mac: Option + A dead key shortcut. No setup needed, works everywhere, fast enough for heavy use.

Windows: Install the Māori keyboard layout. Switch to it when typing content that requires macrons, switch back when done.

iPhone / iPad: Text replacement shortcuts (=a → ā etc.) set up once in keyboard settings.

Android: Add Māori or Hawaiian as a Gboard language.

Linux: Configure the Compose key and use Compose + – + vowel sequences.


Quick Reference

PlatformMethodExample for ā
MacOption + A, then vowelOption + A, then A
WindowsAlt code (numpad)Alt + 0257
iPhone / iPadLong press vowel keyHold A, slide to ā
AndroidLong press vowel keyHold A, slide to ā
ChromebookCtrl + Shift + U, code0101 + Enter
LinuxCompose + – + vowelCompose, -, a
Microsoft WordCode then Alt + X0101, Alt + X

The Bottom Line

On a Mac, Option + A followed by the vowel is clean, fast, and works everywhere — it’s one of the better built-in accent shortcuts across any platform. On mobile, the long press is instant and requires nothing. On Windows, the Alt codes work but are hard to memorize, making the Māori keyboard layout a better investment for anyone typing macrons with any regularity.

If macrons are a consistent part of your writing workflow, spend ten minutes setting up the right input method for your platform once. The Compose key on Linux, text replacement on iOS, and the Māori keyboard on Windows all pay off immediately and eliminate the friction entirely.

Type it the slow way once, set up the shortcut, and never think about it again.

Leave a Comment