formersi
U+00AF¯

U+00AF · Latin-1 Supplement

Macron ¯: how to type it

Copy ¯ with one click, or type it with Alt + 0175 on Windows or Option + Shift + , on a Mac.

  • WindowsAlt+0175 numeric keypad
  • Mac⌥ Option+⇧ Shift+,
  • Word00AFthenAlt+X
  • iPhoneNo long-press for it. Copy it here.
  • HTML¯ or ¯
Code point
U+00AF
decimal 175
Windows
Alt + 0175
Alt + numpad
Mac
Option + Shift + ,
U.S. / ABC layout
Added
Unicode 1.1
Modifier symbol

Every way to type ¯

Only methods that exist on that system are shown as shortcuts.

Windows Alt code

Alt+0175
  1. Turn on Num Lock.
  2. Hold Alt and type the digits on the numeric keypad (not the top row).
  3. Let go of Alt.

Mac Option key

⌥ Option+⇧ Shift+,

U.S. and ABC keyboard layouts. Hold the keys together.

Microsoft Word Alt + X

00AFthenAlt+X

Type 00AF, then press Alt + X (Word for Windows).

Google Docs menu

Insert › Special characters, then search “macron”, or paste it from here.

iPhone and iPad copy

Not on a long-press of the default keyboard. Copy it here, or add a Text Replacement (Settings › General › Keyboard › Text Replacement).

Android symbol pages

Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.

Linux Unicode input

Ctrl+Shift+Uthen00afthenEnter

GNOME and most GTK apps (IBus).

Chromebook Unicode input

Ctrl+Shift+Uthen00afthenEnter

Type the code after the underlined u appears.

How ¯ is stored in UTF-8

2 bytes (16 bits) for 1 code point

length and continuation bitsbits of the code point
Computed from U+00AF with the UTF-8 rules of RFC 3629. Same bytes as text: see “Codes” below.

Codes

For HTML, CSS, JavaScript, JSON, Python and URLs.

HTML entity&macr;
UnicodeU+00AF
HTML decimal&#175;
HTML hex&#x00AF;
CSS content\00AF
JavaScript\u00AF
JSON\u00af
Python\u00af
UTF-8 bytesC2 AF
UTF-1600AF
URL encoded%C2%AF
Python name\N{MACRON}

From the Unicode Standard

Names, aliases and notes from the Unicode 13.0 names list.

  • Unicode name MACRON
  • Category Modifier symbol (Sk)
  • Block Latin-1 Supplement
  • Also called overline, APL overbar
  • Note this is a spacing character

Related symbols

Look-alikes named in the Unicode notes first, then neighbours in the same block.

SymbolNameCodeAlt code
°Degree signU+00B0Alt + 0176
®RegisteredU+00AEAlt + 0174
±Plus-minus signU+00B1Alt + 0177
SHSoft hyphenU+00ADAlt + 0173
²Superscript twoU+00B2Alt + 0178
¬Not signU+00ACAlt + 0172

Questions

What is the Alt code for Macron (¯)?

Hold Alt and type 0175 on the numeric keypad, then let go of Alt.

How do I type ¯ on a Mac?

Option + Shift + , on the U.S. or ABC keyboard layout.

What is the HTML code for ¯?

Use &macr; or &#175; (decimal) or &#xAF; (hex).

Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.