The Accent Letters

How to Type ø (O with stroke) on HTML

Published August 5, 2026, 2 min read

Typing ø (o with stroke) on HTML takes a few seconds once you know the trick. The short answer is ø. Read on for step-by-step instructions, the uppercase Ø and what to do when a method does not work.

ø on HTML: ø

Ø on HTML: Ø

Or copy it:

Method 1: Codes for web pages

FormatCode for ø
Named entityø
Decimal entityø
Hex entityø
CSS contentcontent: "\00F8";
JavaScript"\u00F8"
URL encoded%C3%B8
UTF-8 bytesC3 B8

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 Ø
Named entity&Oslash;
Decimal entity&#216;
Hex entity&#x00D8;
CSS contentcontent: "\00D8";
JavaScript"\u00D8"
URL encoded%C3%98
UTF-8 bytesC3 98

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+00F8, named LATIN SMALL LETTER O WITH STROKE. It is used in Norwegian, Danish and Faroese. A line through the letter itself. Examples are ø (Danish, Norwegian), ł (Polish), đ (Vietnamese, Croatian) and ħ (Maltese). See the ø character page for every code and shortcut.

Troubleshooting

Frequently asked questions

What is the shortcut for ø on HTML?

&oslash;.

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+00F8. In HTML it is &oslash;.

Related guides

All accent shortcuts for HTML