'
PunctuationPrintableDec 39

ASCII 39 '

The printable character "'" at ASCII code 39.

All Representations

Decimal
39
Hexadecimal
0x27
Octal
0o047
Binary
00100111
HTML Entity
'

Character Details

Character'
Name'
Decimal39
Hexadecimal0x27
Octal0o047
Binary00100111
HTML Entity'
CategoryPunctuation
PrintableYes

About ASCII 39 (')

The apostrophe (single quote) serves dual roles as a punctuation mark for possession and contraction in English, and as a string delimiter in many programming languages. In SQL, single quotes delimit string literals, and failing to properly escape apostrophes in user input is the root cause of SQL injection — one of the most prevalent and dangerous web security vulnerabilities. In Python and JavaScript, single quotes are interchangeable with double quotes for string literals. In shell scripting, single quotes prevent all variable expansion.

Punctuation marks serve as the structural scaffolding of written language, delineating sentences, clauses, and phrases while conveying emphasis and grouping. In programming, these same characters gain powerful additional roles as operators, statement terminators, delimiters, and syntactic markers that compilers and interpreters rely upon. This dual significance in both natural language and code syntax means punctuation characters carry outsized functional importance relative to their small count in the ASCII character set.

In the ASCII encoding table, Apostrophe is assigned code point 39 in decimal (0x27 hexadecimal, 047 octal, 00100111 binary). The 7-bit ASCII standard, first published in 1963 by the American Standards Association, defines exactly 128 characters that remain the foundation of text encoding systems worldwide. UTF-8, the dominant encoding on the modern web, is fully backward compatible with ASCII — every ASCII character is encoded as the identical single byte in UTF-8, guaranteeing that Apostrophe works reliably across all operating systems, programming languages, and internet protocols.

Related ASCII Characters

Nearby ASCII Codes

DecHexOctBinCharName
340x220o04200100010""
350x230o04300100011##
360x240o04400100100$$
370x250o04500100101%%
380x260o04600100110&&
390x270o04700100111''
400x280o05000101000((
410x290o05100101001))
420x2A0o05200101010**
430x2B0o05300101011++
440x2C0o05400101100,,

Explore the Full ASCII Table

Browse all 128 ASCII characters with codes, representations, and detailed references.