ASCII 39
Apostrophe (')
Printable ASCII
Apostrophe / single quote. Wraps string literals in many languages. Escaped as \' when nested.
All encodings at a glance
| Decimal | 39 |
| Hexadecimal | 0x27 |
| Octal | 0047 |
| Binary | 00100111 |
| HTML numeric entity | ' |
| HTML named entity | ' |
| URL encoding | %27 |
| UTF-8 bytes | 0x27 |
Code snippets
JavaScript
String.fromCharCode(39); // "'"
39.toString(16); // "27"Python
chr(39) # '''
ord(chr(39)) # 39
hex(39) # '0x27'HTML
' <!-- named entity -->
' <!-- numeric entity -->