T

Text Machine

Powerful text tools, in your browser

Replace Smart Quotes

Convert curly "smart" quotes to straight quotes.

Input

How to use Replace Smart Quotes

  1. 1

    Paste your text

    Paste text that contains curly 'smart' quotes copied from Word, Google Docs, or a webpage into the input box.

  2. 2

    Replace the quotes

    Click 'Replace Quotes' to convert all typographic quotation marks to plain straight quotes.

  3. 3

    Review the output

    Check the output box, where curly double and single quotes have been swapped for straight " and ' characters.

  4. 4

    Copy the clean text

    Use 'Copy Output' to paste the corrected text into code, a terminal, or any plain-text environment.

Frequently asked questions

What are smart quotes and why replace them?
Smart (curly) quotes are the angled “” and ‘’ characters that word processors insert automatically. They break code, JSON, CSV, and command-line input, so converting them to straight quotes restores compatibility with plain-text tools.
Does it convert both double and single curly quotes?
Yes. The tool replaces curly double quotes (“ ”) with the straight double quote (") and curly single quotes and apostrophes (‘ ’) with the straight single quote (').
Will it change anything other than the quotation marks?
No. Only the curly quote characters are swapped for straight ones. The rest of your text, including line breaks, spacing, and other punctuation, is left untouched.
Can it fix apostrophes in contractions like 'don’t'?
Yes. A curly apostrophe in words like “don’t” or “it’s” is converted to a straight apostrophe, which is exactly what code and data formats expect.
Is the tool free and private?
It is completely free with no registration, and all replacement happens in your browser, so your text is never uploaded or stored anywhere.

Related tools

Keep going with these handy tools

Case Converter

Find and Replace Text

Capitalize First Letter

Capitalize Each Word

Title Capitalization Tool

Remove Extra Whitespaces