Right Single Quote HTML entity ’

’ is the HTML entity for Right Single Quote ’ (U+2019). Copy the decimal ’ and hex ’ codes plus CSS, JavaScript, Python and URL escapes.

Entity
’
Also written
’ ’
Code point
U+2019
Unicode name
RIGHT SINGLE QUOTATION MARK
Block
General Punctuation
Category
Final quote (Pf)
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: "\2019";In a stylesheet, for ::before and ::after.
JavaScript"\u2019"Also valid in JSON.
Python"\u2019"Python 3 string literal.
Python by name"\N{RIGHT SINGLE QUOTATION MARK}"Readable alternative using the Unicode name.
URL%E2%80%99Percent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesE2 80 993 bytes.
UTF-1620191 code unit, which is what JavaScript length counts.

When to use it

The closing single quote, which is also the typographic apostrophe in it’s and don’t. Use it instead of the straight ' in body text; many editors insert it automatically as a 'smart quote'.

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).