Small Tilde HTML entity ˜

˜ is the HTML entity for Small Tilde ˜ (U+02DC). Copy the decimal ˜ and hex ˜ codes plus CSS, JavaScript, Python and URL escapes.

Entity
˜
Also written
˜
Code point
U+02DC
Unicode name
SMALL TILDE
Block
Spacing Modifier Letters
Category
Modifier symbol (Sk)
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: "\2DC";In a stylesheet, for ::before and ::after.
JavaScript"\u02DC"Also valid in JSON.
Python"\u02dc"Python 3 string literal.
Python by name"\N{SMALL TILDE}"Readable alternative using the Unicode name.
URL%CB%9CPercent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesCB 9C2 bytes.
UTF-1602DC1 code unit, which is what JavaScript length counts.

When to use it

˜ writes U+02DC (Small Tilde), a modifier symbol from the Unicode Spacing Modifier Letters block, encoded since Unicode 1.1. Typographic punctuation like this is usually inserted by an editor or a smart quotes setting; the entity is handy in hand-written HTML.

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

More punctuation and typography

All punctuation and typography · 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).