The Accent Letters

How to Type ī (I with macron) on HTML

Published July 13, 2026, 2 min read

Need ī on HTML for a name, an address or a word in another language? You do not have to copy it from a website every time. The fastest method is ī, and there are a few backups below for when that one is not available.

ī on HTML: ī

Ī on HTML: Ī

Or copy it:

Method 1: Codes for web pages

FormatCode for ī
Decimal entityī
Hex entityī
CSS contentcontent: "\012B";
JavaScript"\u012B"
URL encoded%C4%AB
UTF-8 bytesC4 AB

Method 2: Type it directly with UTF-8

If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste ī straight into the HTML. Entities are only needed when your editor or database cannot store the character.

Method 3: Watch for normalization

ī can also be written as i plus a combining mark. Both look the same but compare as different strings. In JavaScript, call str.normalize("NFC") before comparing or searching.

How to type the capital Ī

The uppercase form works the same way with Shift added where a letter is typed.

Codes for web pages

FormatCode for Ī
Decimal entity&#298;
Hex entity&#x012A;
CSS contentcontent: "\012A";
JavaScript"\u012A"
URL encoded%C4%AA
UTF-8 bytesC4 AA

Type it directly with UTF-8

If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste Ī straight into the HTML. Entities are only needed when your editor or database cannot store the character.

About the letter ī

ī is Unicode U+012B, named LATIN SMALL LETTER I WITH MACRON. It is used in Latvian, Mandarin Pinyin, Māori and Hawaiian. A flat bar above a vowel, used for long vowels in Latvian, Lithuanian, Māori, Hawaiian and Latin textbooks, and for the first tone in Pinyin. See the ī character page for every code and shortcut.

Troubleshooting

Frequently asked questions

What is the shortcut for ī on HTML?

&#299;.

Can I just copy and paste ī?

Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.

What is the Unicode code for ī?

U+012B. In HTML it is &#299;.

Related guides

All accent shortcuts for HTML