Sharp S (Eszett) HTML entity ß

ß is the HTML entity for Sharp S (Eszett) ß (U+00DF). Copy the decimal ß and hex ß codes plus CSS, JavaScript, Python and URL escapes.

Entity
ß
Legacy form
&szlig (no semicolon)
Code point
U+00DF
Unicode name
LATIN SMALL LETTER SHARP S
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: "\DF";In a stylesheet, for ::before and ::after.
JavaScript"\u00DF"Also valid in JSON.
Python"\u00df"Python 3 string literal.
Python by name"\N{LATIN SMALL LETTER SHARP S}"Readable alternative using the Unicode name.
URL%C3%9FPercent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesC3 9F2 bytes.
UTF-1600DF1 code unit, which is what JavaScript length counts.

When to use it

The German sharp s, as in Straße. The capital form U+1E9E has no entity name; write ẞ or use SS in capitals, both of which German rules allow.

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

Browsers also accept the legacy form &szlig 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).