How-to
How Do You Remove Smart Quotes From Text?
Last Updated: November 8, 2026
Quick Summary
To remove smart quotes from text online, paste your text into a browser-based converter, choose replace to swap curly quotes for straight ones or remove to delete quotation marks entirely, then copy the cleaned result. The whole process takes under a minute for most documents.
- Replacing keeps quotation marks but converts curly to straight; removing deletes them completely.
- A curly apostrophe in words like don't becomes dont if you remove all single quotes.
- In JavaScript, use replace() with a global regex targeting Unicode codes like \u201C and \u201D.
- Google Docs' smart quotes setting only affects new typing, not existing text.
- Browser-based tools process text on your own device, so confidential material stays private.
Table of Contents
- Why Smart Quotes Break Text and Code
- The Difference Between Replacing and Removing Quotes
- Using a Smart Quotes to Straight Quotes Converter Online
- How to Remove Smart Quotes From Text Online Free
- How to Remove Quotes From a String in JavaScript
Why Smart Quotes Break Text and Code
Smart quotes look polished in a finished document. They break things everywhere else.
Those curled marks are proper typography in a printed page.
Someone copies a paragraph from Word, pastes it into a script, and gets a syntax error that makes no sense. The code looks perfect. The quotes are the problem.
A 2021 study by K. Barrick and colleagues tested how straight and curly quotation marks affected search strategies across 40 search platforms.
So where do smart quotes cause real damage?
- Code: JavaScript strings, JSON arrays, and SQL lists reject curly quotes.
- Data files: CSV and config files fail validation when smart quotes sneak in.
- Search: A quoted phrase search may return nothing if the quotes are the wrong type.
- Measurements: A curly mark can stand in for inches, which confuses parsers.
If you are also dealing with hidden characters that came along with pasted text, we cover that in our guide on how to remove invisible formatting from copied text.
The good news: fixing this takes seconds once you know which operation you need. And that is where most people go wrong.
The Difference Between Replacing and Removing Quotes
Two different jobs get confused all the time. Replacing swaps one quote style for another. Removing deletes the quotation marks completely.
That distinction matters. Pick the wrong one and you either leave broken characters behind or strip out punctuation you needed.
Replacing smart quotes means converting curly marks to straight marks. The quotation marks stay. Only the character changes.
Removing quotes means deleting the quotation marks entirely. Nothing replaces them.
Here is how the two compare:
| Operation | What Happens | Best For | Watch Out For |
|---|---|---|---|
| Replace | Curly quotes become straight quotes | Code, JSON, SQL, search queries | Apostrophes also change |
| Remove | All quotation marks deleted | Stripping list wrappers, cleaning data | Loses quoted phrases and contractions |
The trap is apostrophes. A curly apostrophe in a word like "don't" is technically a single smart quote.
A common mistake is running a blanket remove when you only needed a replace. In practice, this means you lose meaningful punctuation and have to retype it.
Using a Smart Quotes to Straight Quotes Converter Online
A smart quotes to straight quotes converter online does one job fast: it reads your pasted text, finds every curly quote, and swaps it for the straight version.
The workflow is simple: you paste, click, and copy the result.
Word and Google Docs have quote settings, but those only apply inside those apps. A converter gives you a clean result you can paste anywhere.
What most guides miss is the coverage problem. There is not one curly quote. There are several, and a good converter handles all of them:
- Left and right double quotes
- Left and right single quotes
- Curly apostrophes
- Low and reversed variants that show up in imported text
A tool that only catches the common pair will leave the odd ones behind, which is why full variant coverage matters.
How to Remove Smart Quotes From Text Online Free
You can remove smart quotes from text online free in three steps: paste the text, choose replace or remove, and copy the cleaned result. The whole process takes under a minute for most documents.
Here is the full walkthrough.

Step 1: Paste Your Text
Copy your text from the source and paste it into the input box. The input box is the large text field at the top of the tool.
Paste the raw text exactly as it is. Do not try to clean it first. The tool needs to see the real characters, curly marks and all, to fix them.
If your text came from a PDF or a formatted document, expect extra spaces and blank lines too. You can tidy those afterward with our whitespace remover, which strips extra spaces and blank lines in the same browser session.
One thing to know before you paste: browser-based tools process your text on your own device, not on a remote server. That matters if you work with confidential material. Our article on whether browser-based text processing is secure explains how local processing protects your data.
Step 2: Choose Replace or Remove
Now pick your operation. This is the decision that determines your result.
- Choose replace if you want to keep the quotation marks but make them straight. This is the right call for code, JSON, SQL, and search queries.
- Choose remove if you want the quotation marks gone entirely. This suits stripping wrappers from lists and cleaning raw data.
Click the convert, replace, or remove button. The tool runs through the text and applies your choice to every quote it finds.
Watch out: do not run remove on prose that contains contractions or quoted speech unless you truly want those marks gone. You will lose apostrophes and quotation marks in one pass, and retyping them is tedious.
Step 3: Copy the Cleaned Text
Your converted text appears in the output box. Scan it once to confirm the quotes look right, then copy it out.
Paste it into your code editor, document, or wherever it needs to go. The straight quotes will hold their form. The curly ones are gone.
If the pasted text still looks messy, with odd spacing or doubled lines, our guide on cleaning up messy text in seconds walks through a fast workflow to finish the job.
How to Remove Quotes From a String in JavaScript
In JavaScript, you remove quotes from a string with replace() and a regular expression. The pattern you need depends on whether you are replacing smart quotes or stripping all quotes.
Here is the practical version.
To replace curly double quotes with straight ones, target the Unicode characters directly:
let clean = text.replace(/[\u201C\u201D]/g, '"');
To handle single curly quotes and apostrophes too:
```javascript
let clean = text.replace(/[\u2018\u2019]/g, "'");
To remove all double quotes from a string:
```javascript
let clean = text.replace(/[""]/g, '');
A few things worth knowing:
- The `g` flag means global, so it replaces every match, not just the first ([String.prototype.replace() - JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace)).
- The `\u201C` and `\u201D` codes are the left and right double quote characters.
- The `\u2018` and `\u2019` codes cover left and right single quotes, including apostrophes.
What most guides miss is the reversed and low quote variants. Imported text sometimes carries characters outside the common pair. If your regex leaves stragglers, add those code points to the character class.
A common mistake is forgetting the global flag. Without it, only the first quote gets replaced, and the rest stay curly. Always test on a short string first, then run it on the full text.
## How to Replace Straight Quotes With Smart Quotes in Google Docs
Google Docs can turn straight quotes into smart quotes automatically, and you control it from the settings. The feature is called smart quotes, and it is on by default for most documents.
Here is how to manage it:
1. Open your document in Google Docs.
2. Go to **Tools**, then **Preferences**.
3. Find the **Use smart quotes** checkbox.
4. Check it to turn straight quotes into curly ones as you type.
5. Uncheck it to keep quotes straight.
That setting only affects new typing. It will not convert quotes already in your document. To fix existing text, you either retype it or run it through a converter first.
This is where people get stuck. They toggle the setting, expect the whole document to change, and nothing happens to the old text.
If you are restyling the same text and want to change capitalization while you are at it, our [case converter](https://textutility.io/case-converter) handles uppercase, lowercase, and title case in one pass.
For batch conversion of existing text, paste it into a converter, choose replace, and copy it back.
## Complete Unicode Quote Coverage and Batch Processing
The quotes you can see are not the only ones in play.
Here is why this matters. Unicode assigns a specific code point to each quote style. The common curly double quotes sit at one set of codes. But imported text can carry low quotes, reversed quotes, and prime marks used for feet and inches. A converter that only knows the common pair leaves those behind.
The full set you want covered:
- **Double quotes:** left and right curly, low, and reversed variants
- **Single quotes:** left and right curly, plus the curly apostrophe
- **Prime marks:** the straight and curly marks used for feet, inches, minutes, and seconds
That last group trips people up. A curly prime can look like a quote but means inches. Removing it changes the meaning of a measurement. Replacing it with a straight quote can also be wrong if the text needs the prime symbol.
What to check in a batch run:
Preserving meaning is the whole point. A good conversion keeps your punctuation intact and only changes the character style. If a batch run strips meaning, the operation was wrong, not the text.
## Clean Your Text Now With TextUtility
Messy quotes are a small problem that causes big headaches. One curly character can break a script, fail a data import, or kill a search query.
That is why we built TextUtility. Every tool runs in your browser, so your text stays on your device and is not uploaded to servers. There is no sign-up required. It is designed to work on your phone or desktop.
Here is what you get:
- A quote converter that handles replace and remove in one pass
- Full Unicode coverage, including the odd variants that break code
- Batch-friendly input for large blocks of text
- Local processing, so confidential documents stay private
Pick the operation you need, paste your text, and copy the clean result. That is the whole workflow.
---
Stop letting curly quotes break your code and your documents. TextUtility gives you a fast, private way to clean any text in seconds. Paste your text, choose replace or remove, and copy the result. No account, no upload, no fuss.
<section style="margin:3rem 0 2rem 0;" itemscope itemtype="https://schema.org/FAQPage"><h2 style="font-weight:700; margin:0 0 4px 0;">Frequently Asked Questions</h2><div style="padding:20px 0; border-bottom:1px solid #e5e7eb;" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question"><h3 style="font-weight:600; margin:0 0 8px 0;" itemprop="name">What is the difference between smart quotes and straight quotes?</h3><div style="line-height:1.7;" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer"><p itemprop="text" style="margin:0;">Smart quotes, also called curly quotes, are typographic characters that curve toward the text. Straight quotes are the plain vertical marks on a standard keyboard. Word processors often swap straight quotes for curly ones automatically, which looks fine in prose but breaks code, SQL lists, and JSON arrays. Curly and straight quotation marks are not always interchangeable in search queries, so knowing which type you have matters.</p></div></div><div style="padding:20px 0; border-bottom:1px solid #e5e7eb;" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question"><h3 style="font-weight:600; margin:0 0 8px 0;" itemprop="name">How can I remove smart quotes from text online for free?</h3><div style="line-height:1.7;" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer"><p itemprop="text" style="margin:0;">Paste your text into a browser-based tool, choose whether to convert curly quotes to straight quotes or delete quotation marks entirely, then copy the cleaned output. TextUtility runs in your browser with no sign-up and does not upload your data to servers, so you can remove smart quotes from confidential documents without uploading anything. It is designed to work on both phone and desktop.</p></div></div><div style="padding:20px 0; border-bottom:1px solid #e5e7eb;" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question"><h3 style="font-weight:600; margin:0 0 8px 0;" itemprop="name">Can smart quotes cause problems in code or plain-text files?</h3><div style="line-height:1.7;" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer"><p itemprop="text" style="margin:0;">Yes. Curly quotes are distinct Unicode characters, not the ASCII straight quote, so code compilers, SQL queries, and JSON parsers reject them. A string wrapped in smart quotes will throw a syntax error in JavaScript, and JSON arrays built from word-processor text often fail to parse. Converting smart quotes to straight quotes before pasting into a code editor or database prevents these errors and keeps your punctuation meaning intact.</p></div></div><div style="padding:20px 0; border-bottom:1px solid #e5e7eb;" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question"><h3 style="font-weight:600; margin:0 0 8px 0;" itemprop="name">How do I remove quotes from a string in JavaScript?</h3><div style="line-height:1.7;" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer"><p itemprop="text" style="margin:0;">Use the replace method with a regular expression that matches both straight and curly quotes. For example, text.replace(/["'‘’“”]/g, '') strips all quote characters, while replace(/[‘’]/g, "'") converts curly single quotes to straight ones. For batch work or quick one-off cleanups, pasting the string into a browser-based converter is faster than writing a script each time.</p></div></div></section>