Why do smart quotes cause problems?
Word processors like Microsoft Word, Google Docs, and Apple Pages automatically replace straight quotes (" and ') with typographically correct curly quotes. This looks better in printed documents but breaks almost everything in software.
- Code breaks. Python, JavaScript, and most languages require straight quotes as string delimiters. Pasting code with smart quotes causes
SyntaxErroror unexpected token errors. - JSON becomes invalid. JSON requires double straight quotes for all strings. Curly double quotes are not valid JSON delimiters — parsers reject them immediately.
- Command-line tools fail. Shell commands with smart-quoted arguments fail with “command not found” or garbled output because the shell cannot parse the Unicode quote characters as argument delimiters.
- APIs and CSV break. Curly quotes in API request bodies and CSV field values cause parse failures when the receiving system expects ASCII quotes.
- String comparisons fail.
text === "hello"returns false when the string contains curly-quoted “hello” — they are different Unicode characters.
How Unformat converts smart quotes to straight quotes
Unformat replaces all four curly quote characters with their ASCII equivalents in a single pass:
- “ (left double quotation mark) →
" - ” (right double quotation mark) →
" - ‘ (left single quotation mark) →
' - ’ (right single quotation mark / apostrophe) →
'
The stats toast shows exactly how many quotes were converted, so you can confirm the cleanup ran. All processing happens in your browser — your text never reaches a server.
How to clean your text
- Copy the text containing smart/curly quotes.
- Paste it into the text area above (Ctrl+V or Cmd+V).
- Smart quotes are replaced with straight quotes instantly.
- Click "Copy Clean Text" or press Ctrl+K to copy the result.
- Paste the cleaned text into your code editor, terminal, JSON file, or API tool.
Frequently Asked Questions
Does this affect apostrophes?
Yes. The right single quotation mark (U+2019) is also used as a typographic apostrophe in words like “don’t”. Unformat replaces it with a straight apostrophe, which is correct for code and plain text. For publication-quality print text, you would keep the typographic version.
What about curly backticks?
Standard mode handles double and single curly quotes. Developer mode (enable Sanitize code in options) additionally converts curly backticks to straight backticks — useful when copying code that uses backtick template literals.
Can I fix smart quotes in Python strings specifically?
Yes — this tool handles all smart quote types regardless of language. For Python-specific context, see the dedicated /fix-smart-quotes-python page.