The Accent Letters

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

Published May 20, 2026, 2 min read

The letter ő does not have its own key on an English keyboard, but LaTeX still makes it easy to type. Use \H{o}, or pick one of the other methods in this guide. ő appears in Hungarian.

ő on LaTeX: \H{o}

Ő on LaTeX: \H{O}

Or copy it:

Method 1: LaTeX command

Write \H{o} in text mode. Load \usepackage[T1]{fontenc} for correct hyphenation and copy-paste from the PDF.

Method 2: Type the character directly

Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste ő into your source. On Overleaf, set the compiler in Menu → Compiler.

How to type the capital Ő

The uppercase form works the same way with Shift added where a letter is typed.

LaTeX command

Write \H{O} in text mode. Load \usepackage[T1]{fontenc} for correct hyphenation and copy-paste from the PDF.

Type the character directly

Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste Ő into your source. On Overleaf, set the compiler in Menu → Compiler.

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 LaTeX?

\H{o}.

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

All accent shortcuts for LaTeX