Smart Quotes
Convert straight quotes to typographic curly quotes and fix dashes.
What gets converted
The converter applies five substitutions in sequence. Order matters — the em dash and en dash rules run before quotes to avoid misidentifying hyphens in quoted content.
| Input | Output | Unicode |
|---|---|---|
| digit-digit (e.g. 2020-2021) | 2020–2021 | U+2013 en dash |
| space--space or -- | — or — | U+2014 em dash |
| "opening double quote" | “string” | U+201C / U+201D |
| 'opening single quote' | ‘string’ | U+2018 / U+2019 |
How opening vs. closing is determined
Opening quotes are those preceded by whitespace, the start of a line, or an open bracket/parenthesis and followed by a non-space character. All remaining straight quotes become closing quotes (or apostrophes for single quotes). This heuristic works correctly for standard English typography but fails on some edge cases: a quote at the start of a word preceded by an em dash will not be recognised as opening.
Warning: Apostrophes in contractions ("don't", "it's") become right single quotation marks (U+2019), which is the typographically correct character. Some systems treat them as different characters from apostrophes, which can cause search or comparison issues.
Frequently Asked Questions
Your files stay on your computer. Dad promised.