Small o with Stroke HTML entity ø

ø is the HTML entity for Small o with Stroke ø (U+00F8). Copy the decimal ø and hex ø codes plus CSS, JavaScript, Python and URL escapes.

Entity
ø
Legacy form
&oslash (no semicolon)
Code point
U+00F8
Unicode name
LATIN SMALL LETTER O WITH STROKE
Block
Latin-1 Supplement
Category
Lowercase letter (Ll)
Since
Unicode 1.1
Defined in
HTML 4.01 and HTML5

Codes to copy

HTML namedøWorks in HTML; in XML only & < > " ' are predefined.
HTML decimaløWorks in HTML and XML.
HTML hexøWorks in HTML and XML.
CSScontent: "\F8";In a stylesheet, for ::before and ::after.
JavaScript"\u00F8"Also valid in JSON.
Python"\u00f8"Python 3 string literal.
Python by name"\N{LATIN SMALL LETTER O WITH STROKE}"Readable alternative using the Unicode name.
URL%C3%B8Percent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesC3 B82 bytes.
UTF-1600F81 code unit, which is what JavaScript length counts.

When to use it

ø writes U+00F8 (Small o with Stroke), a small letter from the Unicode Latin-1 Supplement block, encoded since Unicode 1.1. On a page saved as UTF-8 the letter can simply be typed; the entity helps in ASCII-only templates and code samples.

The name dates from HTML 4, so it works in every browser and in old email clients.

Browsers also accept the legacy form &oslash without a semicolon, for compatibility with old pages; new HTML should always end the reference with a semicolon.

More latin letters with accents

All latin letters with accents · Every HTML entity · Encode or decode text

Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).