Apostrophes and hyphens: different punctuation functions
How apostrophes and hyphens differ, what punctuation tools change when they convert them, and when plain keyboard characters are the safer choice.
Apostrophes and hyphens both sit inside words, so they are often handled by the same "fix punctuation" tools. Their jobs are different. An apostrophe signals that something is missing or that something belongs to someone. A hyphen joins words or splits one across a line. A transformation that treats them as interchangeable, or swaps either for a look-alike character, can change how text reads, searches and behaves when copied.
Is converting these marks suitable for your use?
Converting straight apostrophes to typographic ones (’) suits published prose such as articles, headlines and print layouts, where the main benefit is consistent, finished-looking typography. The deciding tradeoff is that the stored character changes. Anything that compares exact characters may stop matching. That includes code, commands, file names, data fields, form validation and some find or search functions.
For hyphens, the keyboard hyphen-minus is usually the right character to keep. Converting it is worthwhile only when you need a specific behavior, such as a hyphen that will not break at a line end, or when the mark was never a hyphen in the first place. A dash used for a number range is one example. Use plain keyboard characters (' and -) in code, configuration, identifiers, spreadsheets and data exports, and anywhere a machine rather than a person will read the text.
What each mark does
- Apostrophe: marks omitted letters or numbers in contractions and shortened forms (don't, '90s, rock 'n' roll).
- Apostrophe: marks possession (the editor's notes, the writers' room).
- Apostrophe: in some style guides, forms plurals of single letters (mind your p's and q's).
- Hyphen: joins compound modifiers and some compound words (well-known author, mother-in-law).
- Hyphen: attaches certain prefixes, especially to avoid ambiguity (re-cover versus recover).
- Hyphen: splits a word at the end of a line when text is hyphenated for layout.
Neither mark is a dash or a quotation mark. Many conversion errors start with one of these characters being treated as another.
The characters behind the marks
| Character | Code point | Unicode name | Typical role |
| ' | U+0027 | APOSTROPHE | Keyboard default; used in plain text and code for both apostrophes and single quotes |
| ’ | U+2019 | RIGHT SINGLE QUOTATION MARK | The character Unicode recommends for the punctuation apostrophe in typeset text |
| ʼ | U+02BC | MODIFIER LETTER APOSTROPHE | An apostrophe that functions as a letter in some writing systems |
| ‘ | U+2018 | LEFT SINGLE QUOTATION MARK | Opening single quote; a common wrong result for apostrophes at the start of a word |
| ′ | U+2032 | PRIME | Feet, minutes, mathematical notation; looks similar but is not an apostrophe |
| • | U+002D | HYPHEN-MINUS | Keyboard default; hyphen in prose, minus or separator in code and identifiers |
| ‐ | U+2010 | HYPHEN | Unambiguous hyphen; not included in every font |
| ‑ | U+2011 | NON-BREAKING HYPHEN | Hyphen that prevents a line break at that point |
| (invisible) | U+00AD | SOFT HYPHEN | Shows only if a line breaks there |
| – | U+2013 | EN DASH | Ranges and connections (pages 10–20); not a hyphen |
| — | U+2014 | EM DASH | Breaks in a sentence; not a hyphen |
| − | U+2212 | MINUS SIGN | Mathematical minus; not a hyphen |
What a punctuation tool actually changes
Apostrophe and hyphen tools perform character substitution. They replace one stored code point with another. Visual presentation works differently. Changing a font in CSS or a word processor alters how the same character is drawn, but the underlying text stays the same. A "smart quotes" feature, whether in a web tool or an editor that converts as you type, writes a different character into the file.
The most common apostrophe error comes from tools that decide by position. A mark at the start of a word is assumed to open a quotation, so it becomes ‘ when it should be ’. The example below shows input, a naive conversion and the correct typographic result. It contains no combining marks or emoji.
Input: don't rock 'n' roll the '90s
Naive: don’t rock ‘n’ roll the ‘90s
Correct: don’t rock ’n’ roll the ’90s
Hyphen tools fail differently. Typical features turn double hyphens into em dashes, convert a hyphen between numbers into an en dash, insert soft hyphens for justified layout, or swap in non-breaking hyphens. The number rule is the riskiest. Applied blindly, it turns ISO dates such as 2026-10-31, phone numbers, part numbers and negative values into en dashes. These strings were correct as hyphen-minus and often have to stay that way to be parsed or matched.
Some words are used loosely, so it helps to separate them. "Fancy font" generators substitute letters with characters from Unicode's Mathematical Alphanumeric Symbols block. That block covers letters and digits but not punctuation, so apostrophes and hyphens usually pass through unchanged and can look mismatched beside the styled letters. Character-level reversal moves the apostrophe along with everything else, so don’t becomes t’nod and the mark no longer signals a contraction. A visually mirrored presentation leaves the stored characters alone, but a flipped ’ looks like an opening ‘. A hyphen is symmetric and looks the same. Upside-down generators may replace the apostrophe with a comma-like character. If reversed text contains accented letters built from combining marks, or emoji made of several code points, it has to be reversed by grapheme cluster to avoid detaching or scrambling them.
In mixed right-to-left and left-to-right text, such as Arabic or Hebrew alongside English, apostrophes and hyphens are treated as neutral or weak characters for bidirectional display. Their visual position is resolved from the surrounding text. At the boundary between scripts they can therefore appear on an unexpected side, even though the stored order has not changed.
Will the result stay readable and usable after copying or sharing?
- Copy and paste: substituted characters copy as themselves. A curly apostrophe pasted into code, a terminal command or a configuration file can cause a syntax error or a failed string comparison.
- Forms and data: fields that validate names or identifiers (O'Brien, account-id) may reject the typographic versions or store them as a different value than the plain-text original.
- Search and find: whether ' matches ’, or whether - matches a non-breaking hyphen, depends on how a given tool normalizes text. Soft hyphens can also interrupt exact-match searches. Do not assume consistent behavior across destinations.
- Editing: soft hyphens are invisible, which can make cursor movement, deletion and spell checking behave unexpectedly.
- Font coverage: not every font includes U+2010 or U+2011, so these may fall back to another font or show as an empty box.
- Text messages: characters outside the basic SMS character set, including the curly apostrophe, can switch a message to a less compact encoding and reduce the characters that fit in each segment.
- Assistive technology: screen readers differ in how they announce punctuation, and users often adjust punctuation verbosity. Letters substituted from "fancy font" ranges can be read as symbol names or skipped.
Keep a plain-text equivalent whenever the text will be parsed, compared, imported, typed back in by someone else, or used as an identifier. A practical approach is to keep the plain version as the source and generate the typographic version only for display.
Checks before adopting a transformation
- Run a sample containing leading apostrophes ('90s, 'tis), possessives, dates, number ranges, phone numbers and a line of code.
- Inspect the output's code points rather than relying on how it looks.
- Paste the result into the actual destination, such as your CMS, form, messaging app or spreadsheet, and confirm it displays and saves correctly.
- Test search and find on the converted text in the tools your readers use.
- If accessibility matters, check the output with the screen readers and settings you support.
- Confirm the tool can be limited to prose and will leave code blocks and identifiers untouched.
Evidence gaps
No test results, measurements or destination-specific documentation were supplied for this review. The statements about search matching, font coverage, form validation and screen reader announcements are general principles, not verified observations of a particular tool, platform or assistive technology. Before relying on any transformation, test it in the environments that matter to you.