How to Type ő (O 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: "\0151"; |
| JavaScript | "\u0151" |
| URL encoded | %C5%91 |
| UTF-8 bytes | C5 91 |
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 o 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: "\0150"; |
| JavaScript | "\u0150" |
| URL encoded | %C5%90 |
| UTF-8 bytes | C5 90 |
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+0151, named LATIN SMALL LETTER O 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+0151. In HTML it is ő.
Related guides
- How to Type ő (O with double acute) on Windows
- How to Type ő (O with double acute) on Mac
- How to Type ő (O with double acute) on iPhone
- How to Type ő (O with double acute) on Android
- How to Type ő (O with double acute) on Microsoft Word
- How to Type ő (O with double acute) on Google Docs
- How to Type ł (L with stroke) on HTML
- How to Type ņ (N with cedilla) on HTML
- How to Type œ (Oe ligature (ethel)) on HTML
- How to Type ŕ (R with acute) on HTML