✎

Replace Smart Quotes

Replace smart quotes in entered text with your chosen text.

0Words
0Characters
0Sentences
0mReading time
Choose a file or fill the fields, then click Replace smart quotes.

About Replace Smart Quotes

Word processors and phones turn straight quotes into curly 'smart' quotes. That looks nice in print, but it breaks code snippets, JSON, CSV imports, command-line examples and some older systems that show garbled characters. Converting them back to plain ASCII quotes before pasting into a code editor or database avoids those errors.

How it works

Four single-quote characters are replaced with a straight apostrophe ('): the left and right single quotes U+2018 and U+2019, the low-9 quote U+201A and the reversed high-9 quote U+201B. Four double-quote characters are replaced with a straight double quote ("): U+201C, U+201D, U+201E and U+201F. Nothing else changes. Primes, guillemets, em dashes and ellipsis characters are left as they are. The output downloads as straight-quotes.txt.

How to use Replace Smart Quotes

  1. Type or paste the text you want to process in the text box above.
  2. Select “Replace smart quotes” and check the result before copying or downloading it.

Worked example

Paste a line copied from a word processor that reads “It’s ready,” she said, with curly quotes. The output is "It's ready," she said. All three curly marks become straight ASCII characters, while the comma, words and spacing are untouched.

Tips for a better result

  • Run code samples, shell commands and JSON copied from documents through this tool before using them; curly quotes are a common cause of syntax errors.
  • Em dashes and the ellipsis character are not converted, so replace them with Find and Replace if your target system needs pure ASCII.
  • Turn off smart quotes in your word processor's autocorrect settings if you regularly write code there, to avoid the problem at the source.

Frequently asked questions

Does it handle German or Polish low quotes?

Yes. The low-9 quotes „ and ‚ used in several European languages are converted to straight quotes, along with the reversed forms U+201B and U+201F.

Will it convert French guillemets « »?

No. Guillemets are separate characters and are not part of the replacement list, so they remain unchanged in the output.

Can it do the reverse and create curly quotes?

No. It only converts curly quotes to straight ones. Turning straight quotes into the correct opening and closing curly forms requires context rules that this tool does not implement.

What to check

Review punctuation, formatting and meaning before using transformed text elsewhere.

Read the Privacy Policy for information about local processing, connected services and advertising.