Hyphen vs. Apostrophe: What Each Mark Does and How Text Tools Change Them

Learn the difference between a hyphen and an apostrophe, which Unicode characters represent each, and how conversion, reversal and copy-paste can affect them.

Hyphens and apostrophes are both small marks that sit inside words, so they are easy to confuse or swap by accident. They do different jobs, and each has more than one character version. Text transformation tools such as smart-punctuation converters, dash fixers, reversers and mirror generators can change which version you end up with. This guide explains what each mark does, what a transformation actually changes, and how to check whether the result will still work where you paste it.

The core difference

A hyphen joins. It links parts of a compound (well-known, mother-in-law), attaches some prefixes (re-enter, ex-partner) and marks a word broken across a line. An apostrophe marks something missing or shows possession. It stands in for omitted letters in contractions (don't, it's) and forms possessives (the editor's notes, the editors' notes). Some names use one or the other, such as O'Brien versus a hyphenated surname like Smith-Jones, so swapping them changes the name itself.

Feature | Hyphen | Apostrophe
Main job | Joins words or word parts | Marks omission or possession
Typical position | Between two parts, with no spaces | Inside or at the end of a word
Example | high-quality output | the tool's output
Keyboard character | Hyphen-minus (U+002D) | Straight apostrophe (U+0027)
Typographic alternative | Hyphen (U+2010), non-breaking hyphen (U+2011) | Right single quotation mark (U+2019)

What a transformation actually changes

Most punctuation tools work by character substitution: they replace one Unicode code point with another that looks similar but is a different character. The visible change may be tiny, while the underlying text is genuinely different. That difference matters for searching, matching and code, even when it is hard to see on screen.

Character                      Code point   Typical use
-  hyphen-minus                U+002D       keyboard hyphen; code, URLs, file names
‐  hyphen                      U+2010       typographic hyphen
‑  non-breaking hyphen         U+2011       hyphen that prevents a line break
(invisible) soft hyphen        U+00AD       optional break point, shown only at line end
–  en dash                     U+2013       ranges (not a hyphen)
—  em dash                     U+2014       sentence breaks (not a hyphen)
'  apostrophe                  U+0027       keyboard (straight) apostrophe
’  right single quotation mark U+2019       typographic (curly) apostrophe
ʼ  modifier letter apostrophe  U+02BC       letter-like apostrophe in some orthographies
′  prime                       U+2032       feet, minutes (not an apostrophe)

Common substitutions include converting straight apostrophes to curly ones (smart quotes), converting the keyboard hyphen to a typographic or non-breaking hyphen, and fixing hyphens that should have been en or em dashes. A frequent error in automatic smart-quote conversion is a leading apostrophe turned into an opening single quote (‘) instead of an apostrophe (’), as in ’90s or rock ’n’ roll, because the converter guesses from position. Review abbreviated years and dropped leading letters by hand.

Substitution is not the same as CSS styling

A web page can change how text looks without changing the characters. CSS automatic hyphenation (the hyphens property) lets the browser display break hyphens at line ends, but those hyphens are a rendering effect, not characters in the source text. Fonts can also make a straight apostrophe look curly. If you need the mark to exist in the text itself, for example in a document you will export or paste elsewhere, a styling effect is not enough; you need the actual character.

Reversal, mirroring and right-to-left display

These three are often grouped under labels like reverse text or mirror text, but they behave differently with these marks. Character-order reversal rearranges code points without changing them, so a curly apostrophe keeps its orientation and can look backward in the reversed string. A hyphen looks the same either way because it is symmetric. Visual mirroring flips the glyphs, usually as an image or display effect, so the text may not be copyable as text at all. A so-called mirror text generator that outputs copyable text is typically substituting look-alike characters, so check what it actually produces rather than relying on the label. Bidirectional display in right-to-left languages is different again: Unicode marks only certain characters, such as parentheses, as mirrored in right-to-left contexts. The apostrophe and hyphen characters listed above are not among them, so their glyphs are not flipped automatically.

Will the result stay readable and usable?

Because these are standard Unicode characters, copy and paste between Unicode-aware applications normally carries the exact character across. Problems tend to come from the destination: what it expects, how it renders, and whether it rewrites what you paste. No specific applications, fonts or screen readers were tested for this guide, so treat the points below as things to check rather than guaranteed outcomes.

  • Code, commands, URLs and file names: use the keyboard hyphen-minus and straight apostrophe. Programs and command-line options generally expect these exact characters, and a typographic hyphen or curly apostrophe can cause errors or failed matches.
  • Search and find-and-replace: a search for don't typed with a straight apostrophe may not match don’t written with a curly one, depending on the tool. The same applies to U+002D versus U+2010.
  • Soft hyphens: U+00AD is invisible except at a line break, but it can still be present in copied text and can break searches, spell-checking or matching without any visible cause.
  • Fonts: if a font lacks a glyph for a character such as U+2010 or U+2011, the system may substitute another font or show a placeholder box. Preview in the destination font.
  • Auto-correction: many editors and messaging apps offer automatic smart-quote or dash conversion, which can undo or alter a deliberate choice on paste. Check the destination's autoformat settings.
  • Forms and databases: fields with strict validation, such as names or identifiers, may reject or normalize non-ASCII punctuation.

For accessibility, standard hyphens and apostrophes inside ordinary words are generally the safest choice, because assistive technology reads the surrounding word rather than the mark. How a screen reader announces punctuation depends on the product and its punctuation verbosity settings, and this guide has no test results for specific screen readers. The bigger risk comes from substitution-based style effects: mirrored, upside-down or fancy-letter text built from look-alike symbols may be read as unrelated symbols or skipped. If accessibility matters, keep the real text in plain characters and apply any visual effect with styling instead.

Handling sensitive text

If a converter runs on an external website or service, the text you paste may be sent to that service. Avoid pasting confidential material such as contracts, credentials or personal data into tools whose data handling you have not checked. Find-and-replace in your own editor, or a local script, can make the same substitutions without the text leaving your device.

Choosing by situation

  • Published prose, print and typeset documents: curly apostrophe (U+2019), and either the keyboard hyphen or U+2010 if your font supports it.
  • Plain-text email, chat and maximum compatibility: straight apostrophe (U+0027) and hyphen-minus (U+002D).
  • Code, markup attributes, URLs, file names and data fields: always the keyboard characters.
  • Compounds that must not split across lines, such as a phone-style number or a short hyphenated name: non-breaking hyphen (U+2011), after confirming the destination font displays it.
  • Ranges and sentence breaks: an en dash or em dash, not a hyphen.
  • Reversed or mirrored novelty text: expect curly apostrophes to look wrong and expect accessibility and search to suffer; keep a plain version alongside it.

Before relying on any converted text, paste a sample into the actual destination, check it in the font and app your readers will use, search for a word containing the mark, and confirm it still matches. That one check covers most of the compatibility risks described above.