How to Type ø (O with stroke) on HTML
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
| Format | Code for ø |
|---|---|
| Named entity | ø |
| Decimal entity | ø |
| Hex entity | ø |
| CSS content | content: "\00F8"; |
| JavaScript | "\u00F8" |
| URL encoded | %C3%B8 |
| UTF-8 bytes | C3 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
| Format | Code for Ø |
|---|---|
| Named entity | Ø |
| Decimal entity | Ø |
| Hex entity | Ø |
| CSS content | content: "\00D8"; |
| JavaScript | "\u00D8" |
| URL encoded | %C3%98 |
| UTF-8 bytes | C3 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
- 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+00F8. In HTML it is ø.
Related guides
- How to Type ø (O with stroke) on Windows
- How to Type ø (O with stroke) on Mac
- How to Type ø (O with stroke) on iPhone
- How to Type ø (O with stroke) on Android
- How to Type ø (O with stroke) on Microsoft Word
- How to Type ø (O with stroke) on Google Docs
- How to Type ì (I with grave) on HTML
- How to Type õ (O with tilde) on HTML
- How to Type û (U with circumflex) on HTML
- How to Type ã (A with tilde) on HTML