Straight vs. Curly Apostrophes: Choosing the Right Character
Straight (') or curly (’) apostrophe? Learn what each character is, what converting between them changes, and which to use for publishing, code, search and plain text.
An apostrophe looks like a small detail, but the straight and curly versions are separate characters with different jobs. Choosing between them, or converting one into the other, changes the text that is stored, not just how it looks. This guide explains what each character is, what a conversion does, and how to pick the right one for where your text is going.
The two common apostrophe characters
When people talk about two different types of apostrophes, they almost always mean these:
- Straight apostrophe ( ' ): Unicode U+0027, named APOSTROPHE. It is the vertical mark on a standard keyboard, inherited from typewriters and the ASCII character set. It does not distinguish left from right.
- Curly apostrophe ( ’ ): Unicode U+2019, named RIGHT SINGLE QUOTATION MARK. It is the shaped, comma-like mark used in typeset books and professional publishing. Unicode recommends this character as the preferred apostrophe in English punctuation.
Note that the curly apostrophe and the closing single quotation mark are the same character. There is no separate “curly apostrophe” code point in ordinary English typography. A third character, U+02BC MODIFIER LETTER APOSTROPHE ( ʼ ), exists for orthographies where the apostrophe functions as a letter rather than punctuation; it is not the right choice for everyday English contractions and possessives.
What converting between them actually changes
Switching from straight to curly apostrophes (often called “smart quotes” or “typographic quotes”) is a character substitution. Each U+0027 in the text is replaced with a different code point, usually U+2019. Anything that reads the raw text, such as a search index, a compiler, a spell checker or a database comparison, sees a different character afterward.
This is different from changing only the appearance. A font can draw the straight apostrophe with a slight slant or taper, but the stored character is still U+0027. CSS styling likewise changes presentation, not the underlying characters; it will not turn a typed straight apostrophe into a curly one. The conversion also has nothing to do with reversing or mirroring text: character order and direction stay the same, only the specific mark is swapped.
Why straight-to-curly conversion involves guesswork
Because the straight mark is directionless, a converter has to infer whether each one should become an opening single quote (‘, U+2018), a closing single quote, or an apostrophe (both ’, U+2019). Simple rules, such as “after a space, use an opening quote,” handle most words correctly but fail on apostrophes that begin a word.
Input (straight): the '90s, 'til then, rock 'n' roll
Correct (curly): the ’90s, ’til then, rock ’n’ roll
Typical naive result: the ‘90s, ‘til then, rock ‘n’ roll
The example above is illustrative, not the observed output of any particular tool. It shows the most common error pattern: a leading apostrophe becomes an opening quotation mark that points the wrong way. Whatever converter or autocorrect feature you use, check words with leading apostrophes after conversion.
Another trap is measurement. Feet and minutes (6' or 45') are not apostrophes at all. Typographically they call for the prime symbol (′, U+2032), and in plain or technical text the straight mark is a safer fallback than a curly one, which reads as a quotation mark.
Reversibility
Converting curly to straight is mechanical and predictable: replace ‘ and ’ with '. It does discard information, since opening quotes, closing quotes and apostrophes all collapse into one character. Converting straight to curly is the riskier direction, because it depends on the guessing described above. If you need to move text back and forth, keep a straight-apostrophe source of truth and generate the curly version for display, rather than repeatedly converting the same text.
Curly or straight: which one fits your use?
| Criterion | Straight apostrophe (') | Curly apostrophe (’) |
| Stored character | U+0027, in basic ASCII | U+2019, outside ASCII |
| Appearance | Vertical, typewriter style | Shaped, matches typeset quotation marks |
| Typing | Directly on standard keyboards | Usually via autocorrect, a key combination or a character picker |
| Code, markup and data | Required where it is syntax (string delimiters, attribute values, SQL) | Treated as ordinary text; breaks syntax if used as a delimiter |
| Search and matching | Matches what most people type | May not match a straight-apostrophe query unless the tool normalizes them |
| Legacy or ASCII-only systems | Safe | Can be garbled or replaced |
| Reversibility | Converting to curly needs context guessing | Converting to straight is mechanical but loses quote direction |
Choose curly apostrophes for:
- Published prose: articles, books, marketing copy, presentations and printed material, where typographic consistency with curly quotation marks matters.
- Headlines and display text, where the straight mark is most noticeable at large sizes.
- Any project whose style guide calls for typographic quotes.
Choose straight apostrophes for:
- Source code, configuration files, command lines, regular expressions and query strings.
- Filenames, usernames, passwords, product codes and anything a person or program must type or match exactly.
- CSV, JSON and other data meant for machine processing, unless the data is explicitly prose.
- Text bound for systems you know or suspect are limited to ASCII or a legacy encoding.
Whichever you choose, the most important rule is consistency within a document. Mixed apostrophes, often the result of pasting from several sources, look careless in prose and cause mismatches in search and data processing.
Will the text stay readable and usable where you need it?
Copying and pasting
Both characters are standard Unicode plain text, so the chosen apostrophe normally travels with a copy and paste; it is not a formatting layer that gets stripped. Two problems are common in practice. First, a destination with autocorrect enabled may convert apostrophes again as you paste or edit. Second, a system that misreads the text encoding can garble the curly apostrophe: UTF-8 text displayed as Windows-1252, for example, turns ’ into the sequence ’. If you see that pattern, the issue is encoding, not the apostrophe choice itself.
Code and technical text
Curly apostrophes and quotes are a frequent cause of errors when code is drafted in a word processor, email or chat app and then pasted into a terminal or editor. The language expects U+0027 or the straight double quote, so the curly versions are treated as unknown characters. Disable smart quotes in tools where you write technical content, or run a curly-to-straight replacement before pasting.
Search, sorting and matching
Whether a search for don't finds don’t depends on whether the search tool normalizes apostrophes. Some do; others treat the two as different characters. The same applies to spreadsheet lookups, deduplication and database comparisons. If matching matters, normalize to one form, usually straight, in the data layer and use curly apostrophes only in displayed text.
Accessibility
Screen readers generally treat an apostrophe within a word as part of that word, but exact behavior differs between screen readers, voices and punctuation verbosity settings, and no test results were supplied for this guide. Do not assume either character is universally announced the same way. If accessibility is critical, test the actual text with the screen readers your audience uses. Using the correct character also avoids a known problem: a wrongly placed opening quotation mark may be announced as a quote rather than read as part of the word.
HTML and web publishing
In HTML encoded as UTF-8, you can type the curly apostrophe directly. If you need an escaped form, the curly apostrophe is ’ or ’, and the straight one is ' (or ' in HTML5 and XML). Inside attribute values delimited by straight single quotes, a literal straight apostrophe must be escaped; a curly one does not end the attribute.
<p>It’s ready.</p> <!-- curly, escaped -->
<p>It’s ready.</p> <!-- curly, literal UTF-8 -->
<p>It's ready.</p> <!-- straight, escaped -->
Using online converters with sensitive text
Converting apostrophes does not require sending text anywhere. A find-and-replace in a local editor, a word processor’s smart-quote setting, or a short script can do the job. If you do use a web-based converter, avoid pasting confidential, personal or unpublished material unless you have checked how the service handles submitted text.
A quick destination check
- Will people read this as prose? Curly is the typographic standard.
- Will a program parse it, or will someone retype it exactly? Use straight.
- Does it need to match other text in search or lookups? Normalize to one form, usually straight.
- After converting to curly, did leading apostrophes (’90s, ’til) and measurement marks come out correctly?
- After pasting, does the destination show the expected character, without garbling or unwanted autocorrection?
Evidence gap: this guide relies on Unicode character definitions and general, verifiable typesetting and encoding principles. No tests of specific applications, converters, keyboards or screen readers were supplied, so behavior in a particular tool should be confirmed in that tool.