Straight Apostrophe (')
U+0027APOSTROPHEBasic Latin
Also known as single quotetypewriter apostrophe
The straight apostrophe ' is the single quote on the keyboard. Code uses it to mark strings and characters, while printed English usually uses the curly apostrophe ’, as in don’t.
Symbol codes
- Unicode
U+0027- Alt Code
Alt+39- HTML Code
'- CSS Code
\27- HTML Entity
'- HEX Code
'
Other apostrophes and single quotes
- Right Single Quotation Mark: The curly apostrophe and right single quotation mark used in printed English.
- Left Single Quotation Mark: The left single quotation mark, which opens single quotes.
- Prime: The prime, the correct symbol for feet and minutes, as in 6′.
About Straight Apostrophe
The straight apostrophe ' is the single quote on the keyboard. Code uses it to mark strings and characters, while printed English usually uses the curly apostrophe ’, as in don’t.
' is encoded in Unicode as code point U+0027 (decimal 39). Its official Unicode name is APOSTROPHE.
It belongs to the Basic Latin block (U+0000–U+007F), its General Category is Other Punctuation (Po), and it was added in Unicode 1.1, released in 1993. Its script value is Common: it is shared across writing systems rather than belonging to one.
Common uses
- Single-quoted strings in programming
- Apostrophes and single quotes in plain-text messages
- Feet and minutes in quick notes, where the prime ′ is the typeset form
Examples
- Code
- name = 'Ana'
- Plain text
- it's
Sources: Unicode Character Database 18.0.0, the HTML Standard’s list of named character references, and Unicode’s code page mappings.
How to type or insert Straight Apostrophe
- Windows
- Press the ' key next to Enter on U.S. and U.K. keyboard layouts.
- macOS
- Press the ' key next to Return on U.S. and British layouts.
- iPhone and iPad
- Tap 123 and touch and hold the ' key to choose straight or curly.
- Any device
- Select Copy symbol, then paste with Ctrl+V, or ⌘+V on a Mac.
- Windows Alt code
- With Num Lock on, hold Alt, type 39 on the numeric keypad, then release Alt.
- Microsoft Word
- Type
0027, then press Alt+X. - macOS Character Viewer
- Press Control+⌘+Space and search for “apostrophe”.
- Linux (GTK and IBus)
- Press Ctrl+Shift+U, type
0027, then press Space. - HTML
'or'. In a UTF-8 page you can also paste the character itself.- CSS
content: "\27";in a::beforeor::afterrule.- JavaScript
"\u0027"
Technical properties
Unicode 18.0.0
- Code point
- U+0027
- Decimal
- 39
- Unicode name
- APOSTROPHE
- Block
- Basic Latin · U+0000–U+007F
- General category
- Other Punctuation (Po)
- Script
- Common
- Introduced
- Unicode 1.1
- JavaScript
- "\u0027"
Common questions about Straight Apostrophe
What is the Straight Apostrophe symbol?
The straight apostrophe ' is the single quote on the keyboard. Code uses it to mark strings and characters, while printed English usually uses the curly apostrophe ’, as in don’t. In Unicode it is U+0027, officially named APOSTROPHE. It is also known as single quote and typewriter apostrophe.
Which apostrophe should I use in writing?
In printed English, use the curly apostrophe ’, as in don’t; word processors usually insert it automatically. Use the straight ' in code, where curly quotes cause errors.
How do I copy and paste the Straight Apostrophe symbol?
Select Copy symbol at the top of this page, then paste with Ctrl+V on Windows and Linux or ⌘+V on a Mac. On a phone, tap Copy symbol, then touch and hold where you want it and choose Paste. ' pastes as ordinary text, so it works in documents, messages, and code.
How do I type the Straight Apostrophe symbol on Windows?
Turn on Num Lock, hold Alt, type 39 on the numeric keypad, then release Alt. In Microsoft Word, type 0027 and press Alt+X to turn the code into '. In any app, open Character Map from the Start menu, search for “apostrophe”, then select and copy the character.
How do I type the Straight Apostrophe symbol on a Mac?
Press Control+⌘+Space to open the Character Viewer, search for “apostrophe”, and double-click the result to insert it.
How do I type the Straight Apostrophe symbol on an iPhone or Android phone?
The simplest way is to copy it from this page and paste it where you need it. If you use it often, save it as a text shortcut: on iPhone, go to Settings > General > Keyboard > Text Replacement; with Gboard on Android, go to Gboard settings > Dictionary > Personal dictionary.
Can I use the Straight Apostrophe symbol in Word, Google Docs, and social media?
Yes. ' is a standard Unicode character, so you can paste it into Microsoft Word, Google Docs, emails, and posts or bios on Instagram, X, Facebook, and TikTok. In Google Docs you can also choose Insert > Special characters and search for “apostrophe”. In Word, choose Insert > Symbol > More Symbols, set from to Unicode (hex), and enter 0027 as the character code.
Is the Straight Apostrophe symbol an emoji?
No. ' is a text symbol, not an emoji. It takes the color and size of the surrounding text, and its exact shape depends on the font.
Why does the Straight Apostrophe symbol show as a box or question mark?
An empty box or a question mark means the font on that device has no glyph for '. The character is still there: it appears correctly wherever a font covers Unicode’s Basic Latin block, and free font families such as Google Noto cover nearly all of Unicode.
What are the HTML and CSS codes for the Straight Apostrophe symbol?
In HTML, write ' (decimal) or ' (hexadecimal), or the named entity '. In CSS, use content: "\27"; in a ::before or ::after rule, and in JavaScript "\u0027". See all HTML codes.