Masculine Ordinal Indicator Alt Code and Symbol

The Alt code for Masculine Ordinal Indicator is 167. Hold Alt, type 167 on the numeric keypad, then release Alt. Masculine Ordinal Indicator also has the Unicode codepoint U+00BA, so you can type it with Alt+186 on Windows, search for U+00BA in macOS's Character Viewer, use º in HTML, or \00BA in CSS. If your keyboard has no numeric keypad, use the Character Viewer, the HTML entity, or copy the character directly — the Alt key method requires a physical numpad. On a US Mac keyboard, press ⌥0 for Masculine Ordinal Indicator; shortcuts can differ on other layouts. HTML also defines the named entity º for Masculine Ordinal Indicator, but the numeric form º is safer when compatibility is uncertain.

Codes for this symbol

Copy any value by clicking it.
MethodValue
Legacy Alt code
Alt + decimal
Alt + X hex
macOS Option
HTML named entity
HTML decimal
HTML hex
CSS escape
Python escape
JavaScript escape
UTF-8 bytes
Unicode codepoint
Unicode block
Unicode category

How to type masculine ordinal indicator on Windows

  1. Turn Num Lock on so the numeric keypad is active.
  2. Hold the left Alt key.
  3. Type 1 6 7 on the numeric keypad.
  4. Release Alt. The Masculine Ordinal Indicator character (º) appears.

If your keyboard has no numeric keypad, see how to type symbols without a numpad.

How to type masculine ordinal indicator on macOS

On a US keyboard layout, press ⌥0 to insert Masculine Ordinal Indicator. This shortcut assumes a US layout; other layouts may remap it.

If the shortcut does not work on your layout, open the Character Viewer with ⌃⌘Space, search for "Masculine Ordinal Indicator" and click the character.

How to use masculine ordinal indicator in code

  • HTML: or , also
  • CSS: content:"\00BA"; ()
  • Python: \u00BA or chr(0xBA)
  • JavaScript: \u00BA or String.fromCodePoint(0xBA)
  • JSON: "\u00BA"

Frequently asked questions

What is the Alt code for Masculine Ordinal Indicator?

The legacy Alt code for Masculine Ordinal Indicator is 167. Hold Alt, type 1 6 7 on the numeric keypad, then release Alt.

How do I type º without a numpad?

Use the Windows Character Viewer (Win+.), the macOS Character Viewer (⌃⌘Space), an HTML entity such as º, or copy the character directly from this page.

Why does Alt+186 not work?

Alt+186 only works on a keyboard with a physical numeric keypad. It also requires the application to accept the numeric-keypad input path. Laptops without a numpad need an alternative method.

What is the Unicode for Masculine Ordinal Indicator?

The Unicode codepoint for Masculine Ordinal Indicator is U+00BA. You can use this value in HTML as º, in CSS as \00BA, and in Word with Alt+X.

How do I type º on a Mac?

On a US Mac keyboard, press ⌥0. If that does not work on your layout, open ⌃⌘Space and search for U+00BA.