How to Type ű (U with double acute) on HTML
The letter ű does not have its own key on an English keyboard, but HTML still makes it easy to type. Use ű, or pick one of the other methods in this guide. ű appears in Hungarian.
ű on HTML: ű
Ű on HTML: Ű
Or copy it:
Method 1: Codes for web pages
| Format | Code for ű |
|---|---|
| Decimal entity | ű |
| Hex entity | ű |
| CSS content | content: "\0171"; |
| JavaScript | "\u0171" |
| URL encoded | %C5%B1 |
| UTF-8 bytes | C5 B1 |
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: "\0170"; |
| JavaScript | "\u0170" |
| URL encoded | %C5%B0 |
| UTF-8 bytes | C5 B0 |
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+0171, named LATIN SMALL LETTER U WITH DOUBLE ACUTE. It is used in Hungarian. Two slanted lines above a vowel, found only in Hungarian: ő and ű are the long forms of ö and ü. 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+0171. In HTML it is ű.
Related guides
- How to Type ű (U with double acute) on Windows
- How to Type ű (U with double acute) on Mac
- How to Type ű (U with double acute) on iPhone
- How to Type ű (U with double acute) on Android
- How to Type ű (U with double acute) on Microsoft Word
- How to Type ű (U with double acute) on Google Docs
- How to Type ŭ (U with breve) on HTML
- How to Type ů (U with ring above) on HTML
- How to Type ų (U with ogonek) on HTML
- How to Type ŵ (W with circumflex) on HTML