Smart Quote Converter

Convert curly smart quotes to straight quotes, or straight quotes to curly.

The Smart Quote Converter switches your text between straight quotes and curly typographic quotes in either direction. Word processors and web editors often replace straight quotes and apostrophes with curly smart quotes automatically, which looks polished in prose but breaks code, CSV files, and systems that expect plain ASCII. This tool converts them cleanly whichever way you need.

It is built for developers pasting text into code, data cleaners preparing CSV and JSON, and writers who want proper typographic quotes in their published prose. Convert smart quotes to straight quotes to make text safe for programming and data, or convert straight quotes to curly quotes to give documents a professional, typeset appearance.

Everything runs locally in your browser using JavaScript, so nothing you paste is uploaded or stored. Pick a direction, and the converted text appears instantly along with a statistics panel showing how many quote characters were changed, so you can confirm the result before using it.

Features

  • Converts curly single and double quotes to plain straight quotes for code and data safety.
  • Converts straight quotes to context-aware opening and closing curly quotes for polished prose.
  • Also normalises en and em dashes and ellipsis characters to plain equivalents when going straight.
  • Chooses opening or closing curly quotes intelligently based on the surrounding characters.
  • Shows a stats panel counting how many quote characters were converted in the run.
  • Runs instantly and offline with no account, no upload and no limit on how much you paste.
  • Handles apostrophes as well as quotation marks so contractions convert correctly.

How to use Smart Quote Converter

  1. Paste the text containing quotes into the input box.
  2. Choose the direction: smart quotes to straight, or straight quotes to smart.
  3. The converted text updates live as you paste or change the direction.
  4. Check the statistics panel to confirm how many quote characters were changed.
  5. Copy the converted text or export it as a TXT file for your document or code.

Benefits

  • Makes text copied from word processors safe to paste into code, JSON and CSV files.
  • Prevents syntax errors and broken strings caused by curly quotes in programming languages.
  • Gives published prose a professional, typeset look with correct opening and closing quotes.
  • Fixes apostrophes in contractions so they match the quote style you want throughout.
  • Keeps confidential documents private because all conversion happens on your own device.
  • Gives a clear count of changed characters so you can trust exactly what was converted.

Curly quotes, also called smart quotes, are the typographically correct opening and closing marks that word processors insert automatically. They read beautifully in printed and web prose but are a frequent source of bugs when text is pasted into a code editor, because programming languages expect the plain straight versions and treat the curly ones as ordinary letters rather than string delimiters.

When converting straight quotes to smart quotes, the tool looks at the character before each quote to decide whether it should open or close, so quotes after a space or bracket become opening marks and quotes after a letter become closing marks or apostrophes. This heuristic handles the vast majority of ordinary sentences, though unusual constructions may need a quick manual check.

Frequently asked questions

Related tools