← All guides

Curly quotes vs straight quotes: why AI text breaks code and CSV

Explainer · Updated 2026-12-03 · 4 min read

There are two kinds of quotation marks. Straight quotes (" ') are the ones on your keyboard. Curly or smart quotes (“ ” ‘ ’) are the typographic versions used in books. AI tools and word processors often produce curly ones.

Where curly quotes cause trouble

  • Code: print(“hi”) is a syntax error. Programming languages need straight quotes.
  • Spreadsheets and CSV: formulas and imports expect straight quotes.
  • Commands and settings: terminal commands and config files copied from chat can fail.
  • Search: a search for don't may not find don’t.

Convert them in one step

Use the smart quotes converter. It changes “ ” to " and ‘ ’ to ' and leaves the rest of your text alone.

Stop Word making them

In Word: File, Options, Proofing, AutoCorrect Options, AutoFormat As You Type, and untick "Straight quotes with smart quotes". On a Mac, also check System Settings, Keyboard, Text for "Use smart quotes".

Are curly quotes wrong?

No. In published writing they are correct and look better. Convert them only where machines need to read the text.

Try it free: paste your text into the TidyPaste AI text cleaner. No sign-up.

Related guides