Skip to main content

Fix Formatting

Normalize Quotes, Dashes & Ellipses

CleanPastedText editorial · Updated

Text workbench

Try it on your text

Cleaning mode

Removes hidden characters and standardizes AI-style punctuation.

Try a real example

Each sample contains a problem you cannot see.

Original

Pasted text

0 chars · 0 words

Cleaned

Ready to copy

0 changes

Text stays in this browser

Same words · No AI rewriting · No content logging

Smart quotes vs. straight quotes: why consistency matters

Many modern word processors like Microsoft Word and Google Docs automatically "beautify" your text with curly (smart) quotes and em dashes (U+2014) — and AI chatbots do the same, to the point that many writers now deliberately remove em dashes from AI text to shed the tell. These characters look great in a printed book, but they are a nightmare for digital tools.

  • Markdown breaking: Many markdown parsers won't recognize curly quotes as valid delimiters, and smart punctuation can garble code fences and link syntax.
  • Code errors: A curly quote in code is a syntax error that's brutally hard to spot, because U+201D and the straight ASCII quote look nearly identical on screen.
  • Database issues: Non-ASCII punctuation can trigger "encoding errors" or mojibake when imported into older databases and legacy systems.

How to normalize your typography

Our tool identifies all variations of curly double quotes (“ ”, U+201C/U+201D), single quotes (‘ ’, U+2018/U+2019), en dashes (–, U+2013), em dashes (—, U+2014), and the horizontal ellipsis (…, U+2026). It converts them back to their standard ASCII equivalents: straight double and single quotes, the plain hyphen, and three periods. The same pass is part of the universal pasted-text cleaner, so you can fix typography and hidden characters together.

Use the "Keep Typography" preset if you want to remove invisible characters but keep your smart quotes intact — or the full AI text cleaner when the text came from ChatGPT and needs the whole treatment.

Common questions

Frequently asked questions

How do I convert smart quotes to straight quotes?

Paste your text into a typography normalizer like CleanPastedText. Typography normalization is on in the default 'AI Clean' preset, as well as in 'Safe Clean' and 'Plain ASCII', so it works without changing any settings. It matches every curly variant — left and right double quotes (U+201C, U+201D) and single quotes (U+2018, U+2019) — and replaces them with the straight ASCII equivalents. En dashes, em dashes, and ellipsis characters are converted in the same pass.

Why do curly quotes break my code?

Programming languages only accept the straight ASCII quote characters as string delimiters. A curly quote (U+201D) pasted from Word or a chat app looks nearly identical but is a different code point, so the parser throws a syntax error like 'unexpected token'. Because the difference is almost invisible, normalizing quotes before pasting into an editor is the reliable fix.

What is the difference between a hyphen, en dash, and em dash?

The hyphen (U+002D) is the ASCII character on your keyboard, used to join words. The en dash (U+2013) is wider and marks ranges like 2020–2024. The em dash (U+2014) is widest and sets off clauses — like this. Word processors auto-convert typed hyphens into the fancier dashes, which is what a normalizer reverses.

Why does AI-generated text have so many em dashes?

Large language models learned from published prose, where em dashes are common, so models like ChatGPT use them far more often than typical human typists — enough that heavy em dash use has become a well-known AI tell. Normalizing dashes to plain hyphens removes the typographic signature, though it does not change the wording itself.

Can I remove hidden characters but keep my smart quotes?

Yes. Choose the 'Keep Typography' preset in the cleaner: it still strips invisible characters, directional marks, and non-standard spaces, but leaves curly quotes, dashes, and ellipses exactly as they are. That's the right mode when your publication's style guide requires typographic punctuation.

Continue reading

Related guides & tools