How to Type ū (U with macron) on HTML
ū is u with macron, a letter used in Latvian, Lithuanian, Mandarin Pinyin and Māori. On HTML, the quickest way to get it is ū. This guide covers every method that works, including the capital Ū and fixes for common problems.
ū on HTML: ū
Ū on HTML: Ū
Or copy it:
Method 1: Codes for web pages
| Format | Code for ū |
|---|---|
| Decimal entity | ū |
| Hex entity | ū |
| CSS content | content: "\016B"; |
| JavaScript | "\u016B" |
| URL encoded | %C5%AB |
| UTF-8 bytes | C5 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 u 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: "\016A"; |
| JavaScript | "\u016A" |
| URL encoded | %C5%AA |
| UTF-8 bytes | C5 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+016B, named LATIN SMALL LETTER U WITH MACRON. It is used in Latvian, Lithuanian, 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+016B. In HTML it is ū.
Related guides
- How to Type ū (U with macron) on Windows
- How to Type ū (U with macron) on Mac
- How to Type ū (U with macron) on iPhone
- How to Type ū (U with macron) on Android
- How to Type ū (U with macron) on Microsoft Word
- How to Type ū (U with macron) on Google Docs
- How to Type ž (Z with caron) on HTML
- How to Type č (C with caron) on HTML
- How to Type ā (A with macron) on HTML
- How to Type ē (E with macron) on HTML