The Accent Letters

How to Type ő (O with double acute) on HTML

Published May 20, 2026, 2 min read

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

FormatCode for ő
Decimal entityő
Hex entityő
CSS contentcontent: "\0151";
JavaScript"\u0151"
URL encoded%C5%91
UTF-8 bytesC5 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

FormatCode for Ő
Decimal entity&#336;
Hex entity&#x0150;
CSS contentcontent: "\0150";
JavaScript"\u0150"
URL encoded%C5%90
UTF-8 bytesC5 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

Frequently asked questions

What is the shortcut for ő on HTML?

&#337;.

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 &#337;.

Related guides

All accent shortcuts for HTML