How to Type ī (I with macron) on HTML
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
| Format | Code for ī |
|---|---|
| Decimal entity | ī |
| Hex entity | ī |
| CSS content | content: "\012B"; |
| JavaScript | "\u012B" |
| URL encoded | %C4%AB |
| UTF-8 bytes | C4 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
| Format | Code for Ī |
|---|---|
| Decimal entity | Ī |
| Hex entity | Ī |
| CSS content | content: "\012A"; |
| JavaScript | "\u012A" |
| URL encoded | %C4%AA |
| UTF-8 bytes | C4 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
- If you see à and other symbols, the file is UTF-8 but the browser reads it as Windows-1252. Add the meta charset tag.
- Named entities are case sensitive: É and é are different letters.
- In XML and XHTML only five named entities exist, so use numeric codes there.
Frequently asked questions
What is the shortcut for ī on HTML?
ī.
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 ī.
Related guides
- How to Type ī (I with macron) on Windows
- How to Type ī (I with macron) on Mac
- How to Type ī (I with macron) on iPhone
- How to Type ī (I with macron) on Android
- How to Type ī (I with macron) on Microsoft Word
- How to Type ī (I with macron) on Google Docs
- How to Type ā (A with macron) on HTML
- How to Type ē (E with macron) on HTML
- How to Type ō (O with macron) on HTML
- How to Type ă (A with breve) on HTML