Apostrophe vs. Hyphen: Differences and Uses

Apostrophes and hyphens look small but do different jobs. Learn what each mark does, which Unicode characters represent them, and how text transformations affect them.

An apostrophe and a hyphen are both short marks, but they do unrelated jobs. One shows omission or possession; the other joins or splits words. Each also comes in more than one digital form. When you convert, clean up or restyle text, it helps to know which character you have, what a tool replaces it with, and whether the result will still work where you paste it.

Two marks with different jobs

The apostrophe sits high on the line, near cap height. It marks letters or digits that have been left out, as in don't or '90s. It also marks possession, as in the editor's notes.

The hyphen sits at mid-height and is short and horizontal. It joins words or word parts, as in well-known author or re-sign. It also splits a word at the end of a line.

The two marks are not interchangeable. Swapping one for the other either produces a non-word or changes the meaning. It's and its differ by an apostrophe. Re-sign (sign again) and resign (quit) differ by a hyphen.

  • Apostrophe: contractions (can't, they're, o'clock)
  • Apostrophe: possessives (the writer's draft, the writers' room)
  • Apostrophe: omitted digits ('90s) and clipped forms (rock 'n' roll)
  • Apostrophe: some style guides use it for plurals of single letters (mind your p's and q's)
  • Hyphen: compound modifiers before a noun (a long-term plan)
  • Hyphen: some prefixes, especially to avoid ambiguity (re-cover vs. recover)
  • Hyphen: written-out numbers and fractions (twenty-one, two-thirds)
  • Hyphen: line-end word breaks
  • Both: personal names (O'Brien, Smith-Jones), which matters for forms and databases

What a punctuation transformation actually changes

Tools that handle these marks work in different ways. The key question is whether the stored characters change or only their appearance. Labels such as smart punctuation, typography fixer or mirror text describe a goal, not a method, so check which of these mechanisms a tool uses.

  • Character substitution: the stored character is replaced. Examples include a straight apostrophe becoming a curly one, or a hyphen-minus becoming a typographic hyphen or an en dash. The change travels with the text.
  • Invisible insertion: a soft hyphen (U+00AD) is added to mark where a word may break. It is stored in the text but usually shows only at a line break.
  • CSS presentation: a rule such as hyphens: auto makes a browser draw hyphens at line breaks. Nothing is added to the stored text.
  • Character-order reversal: the sequence of characters is reversed. The marks themselves stay the same characters.
  • Visual mirroring: the rendered glyphs are flipped, for example with a CSS transform. The stored text is untouched.
  • Bidirectional display: in right-to-left contexts, neutral punctuation can be displayed in a different position than its stored order suggests. This is a display effect, not an edit.

Each mark has several Unicode representations. They can look similar on screen but are different stored characters.

Character | Code point | Typical role
Apostrophe (straight) | U+0027 | Keyboard apostrophe; required in code, URLs and many data formats
Right single quotation mark (curly apostrophe) | U+2019 | Preferred apostrophe in typeset prose
Modifier letter apostrophe | U+02BC | A letter in some orthographies, not general punctuation
Hyphen-minus | U+002D | Keyboard hyphen; required in code, URLs, file names and command options
Hyphen | U+2010 | Typographic hyphen; looks like a hyphen, but font support varies
Non-breaking hyphen | U+2011 | Hyphen that prevents a line break at that point
Soft hyphen | U+00AD | Invisible optional break point
En dash | U+2013 | Ranges (pages 10–20); not a hyphen
Em dash | U+2014 | Sentence-level break; not a hyphen
Minus sign | U+2212 | Mathematical subtraction and negative numbers

If two strings look identical but behave differently, inspect the code points. The Python snippet below prints each character's code point and Unicode name. Its output depends only on the input string and the standard Unicode names.

import unicodedata

text = "don\u2019t re\u2010sign"
for ch in text:
    print(f"U+{ord(ch):04X}  {unicodedata.name(ch, '<unnamed>')}")

Reversed, mirrored and flipped text

Reversing character order leaves both marks in place as characters. Don't becomes t'nod and well-known becomes nwonk-llew. A straight apostrophe and a hyphen look the same either way.

Visual mirroring is different. A hyphen is symmetric, so it looks unchanged. A curly apostrophe, however, flips into a backward-comma shape that no longer reads as a normal apostrophe.

Upside-down or flip-text generators substitute characters. Their mapping for an apostrophe can be a comma-like or other lookalike character. Check what was actually substituted before relying on it.

Choosing the right character for the job

Two separate decisions are involved. First, choose the right mark: apostrophe or hyphen. Grammar settles that, as described above. Second, choose the right form of that mark: plain keyboard characters or typographic ones. That depends on where the text will be used.

Criterion | Plain characters (U+0027, U+002D) | Typographic characters (U+2019, U+2010/U+2011)
Appearance | Straight apostrophe looks like a tick; hyphen looks standard | Curly apostrophe matches typeset style; hyphen looks nearly the same as hyphen-minus
Stored characters | ASCII, one obvious form | Non-ASCII, several lookalike forms
Typing and editing | On every standard keyboard | Usually inserted by autocorrect, a converter or special input
Search and matching | Matches what most people type | May not match a search typed with plain characters unless the software maps them
Code, URLs, data | Expected and required | Can break syntax, commands or identifiers
Reversibility | Converting to curly requires guessing direction for each apostrophe | Converting back to plain is a simple mapping, but it erases any intentional distinctions
  • Published prose, such as articles, books and print layouts: use the curly apostrophe (U+2019). Hyphen-minus is acceptable for hyphens. Use U+2010 only if your fonts support it.
  • Code, URLs, file names, command-line options, CSV keys and passwords: use plain U+0027 and U+002D only.
  • Names entered in forms or stored in databases: keep the characters the person used, and make sure validation accepts both apostrophes and hyphens.
  • Compounds that must not break across lines: a non-breaking hyphen (U+2011) can help, but test the destination font and how search handles it.
  • Number ranges and subtraction: an en dash or minus sign is usually the intended character, not a hyphen.

Automatic apostrophe curling has one well-known weak spot: words that begin with an apostrophe. Autocorrect often treats a leading straight apostrophe as an opening quote. It then inserts a left single quotation mark (U+2018) in '90s or 'n', when the apostrophe should be U+2019. Review these cases by hand after any conversion.

Illustrative example, not output from any tested tool. The same input is shown under two different conversion goals:

Input:          It's a well-known '90s rock 'n' roll hit
Print prose:    It’s a well-known ’90s rock ’n’ roll hit
Plain/ASCII:    It's a well-known '90s rock 'n' roll hit
Naive curling:  It’s a well-known ‘90s rock ‘n’ roll hit   (wrong marks before 90s and n)

Will the converted text stay readable and usable?

Copy and paste moves stored characters. Substituted characters, such as curly apostrophes, typographic hyphens and soft hyphens, travel with the text. Effects drawn only by CSS, such as automatic hyphenation or mirroring, are not part of the stored text. They generally do not carry over when you paste into another application.

Some destinations may also replace or reject characters on paste. Others apply their own autocorrect. The only reliable check is to paste into the actual destination and inspect the result.

Search and comparison treat each code point as distinct. Standard Unicode normalization does not convert a curly apostrophe into a straight one. As a result, don't typed with U+0027 may not match don’t stored with U+2019 unless the software deliberately maps them.

Soft hyphens cause a similar problem. They can sit invisibly inside a word and prevent an exact match.

In code and commands, punctuation substitution is a common source of failures. A curly apostrophe cannot replace a straight quote as a string delimiter. An en dash or em dash pasted in place of hyphen-minus characters in a command-line option will usually not be recognized.

Accessibility is harder to predict. Whether a screen reader announces an apostrophe, a hyphen or a lookalike character depends on the product, the language and the punctuation verbosity setting. Avoid letting a punctuation mark carry meaning on its own.

Substituted lookalikes from flip or style generators may be announced by their own names, or skipped. If accessibility matters, test with the assistive technology your audience uses.

Fonts are another limit. Hyphen-minus and the straight apostrophe are basic keyboard characters and are widely supported. U+2010 and U+2011 are missing from some fonts. Depending on the system, they can fall back to a different font or display as an empty box.

If you use an online converter, the text you paste may be sent to a remote server. Do not paste passwords, personal data or confidential material into a service you have not vetted. A local find-and-replace in your editor can handle apostrophe and hyphen conversions without the text leaving your device.

  • Paste a sample into the real destination, not just a preview.
  • Search for the converted word using plain keyboard characters to see whether it still matches.
  • Check words that begin with an apostrophe and any names containing apostrophes or hyphens.
  • Look for empty boxes or font changes around typographic hyphens.
  • If the text is code, a URL or data, confirm it contains only U+0027 and U+002D.
  • If accessibility matters, listen to a sample with a screen reader using its default settings.

Gaps in the evidence

This guide is based on general Unicode and typography principles. It does not draw on tests of specific converters, applications, browsers or screen readers. The conversion examples are illustrative and were not observed from any product.

Behavior on paste, in search and in assistive technology varies by software and settings. Confirm any of these that matter to you in your own environment.