Smart Quotes U+201C
U+201C8220“\201C\u201C%E2%80%9CE2 80 9CPunctuation, Initial Quote (Pi)General PunctuationSmart quotes — also called curly quotes, typographic quotes, or fancy quotes — are the properly-shaped versions of quotation marks that open and close in the correct direction. The double-quote pair is “ and ”. The single-quote pair is ‘ and ’. The straight quotes on your keyboard (" and ') are a compromise from the typewriter era, where each key had to serve both opening and closing duty.
In professionally edited text — books, newspapers, magazines, academic papers — smart quotes are standard. In casual text, code, config files, and terminals, straight quotes are standard. This division is normally fine, except that AI language models trained on professional text produce smart quotes by default — including in places where they cause real problems.
The Four Smart Quote Characters
Smart quotes are a family of four Unicode characters:
The single right quote (U+2019) is also commonly used as a typographic apostrophe: don’t instead of don't, it’s instead of it's. This is technically a different use from quoting, but the character is the same.
Why Smart Quotes Break Code
This is the most common complaint about smart quotes: you paste a code snippet from ChatGPT, a blog post, or an email, and it does not work. The cause is almost always smart quotes.
Code parsers — JavaScript, Python, Bash, SQL, JSON, HTML, and so on — recognize only straight quotes as string delimiters. Smart quotes are a completely different character that the parser sees as ordinary text, not syntax.
If you are a developer and a pasted snippet from anywhere does not work for no visible reason, checking for smart quotes is the first thing you should do.
Why AI Models Produce Smart Quotes
Large language models like ChatGPT, Claude, and Gemini learn writing style from their training data. That training data is dominated by professionally edited text: books, journalism, academic writing, legal text, technical documentation from large publishers. In all of these, smart quotes are standard.
The model learns, implicitly, that quotation marks should curl inward. It has no concept of "but this time I am producing code that will be executed." It just produces the quotation marks it learned are correct.
This is the same pattern that produces other AI writing tells:
- instead of hyphens for sentence breaks
- instead of hyphens for ranges
- Horizontal ellipsis (
…, U+2026) instead of three periods - Smart quotes instead of straight quotes
Together, these four patterns account for the majority of visible "AI style" in generated text.
How to Type Smart Quotes
You rarely need to type smart quotes manually, because most writing tools insert them automatically. But when you do:
How to Turn Off Smart Quotes
If you are a developer or technical writer, automatic smart-quote conversion is usually more trouble than it is worth. Here is how to disable it everywhere:
- Microsoft Word: File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type. Uncheck
"Straight quotes" with "smart quotes". - Google Docs: Tools > Preferences. Uncheck
Use smart quotes. - Apple Pages, Notes, TextEdit: System Settings > Keyboard > Text Input > Edit. Turn off
Use smart quotes and dashes. This affects all macOS apps that respect the system setting. - Slack: Preferences > Advanced. Turn off
Format messages with markupif it is inserting smart quotes. - Notion: Settings > Preferences > General. Turn off
Convert typed text into emojiand related autoreplace settings. - Outlook: File > Options > Mail > Editor Options > Proofing > AutoCorrect Options > AutoFormat As You Type. Uncheck smart quotes.
Converting Smart Quotes to Straight Quotes
When you already have text full of smart quotes and need straight ones, bulk conversion is the answer.
In JavaScript
In Python
On the Command Line
In Our Tool
Paste any text into the Invisible Character Viewer on the homepage. Smart quotes are highlighted alongside other special characters. You can also use the "Strip Invisible Characters" button to clean most typographic noise in one click, then convert the quotes separately if needed.
Smart Quotes vs Prime Marks
There is a third family of quote-like characters that is often confused with smart quotes: the prime marks, used for feet, inches, minutes, and seconds.
If you are writing 5'10" for a height measurement, the typographically correct version is 5′10″ using prime marks, not smart quotes and not straight quotes. AI models sometimes get this right and sometimes confuse primes with smart quotes.
Smart Quotes in URLs and File Names
Smart quotes in URLs get percent-encoded:
“becomes%E2%80%9C”becomes%E2%80%9D‘becomes%E2%80%98’becomes%E2%80%99
This is technically valid but almost always a mistake. URLs with smart quotes happen when someone copies a URL from a Word document or rich-text email. The URL will not match the original, and servers may return 404 or redirect unexpectedly. Always use straight quotes (or no quotes) in URLs.
Similarly, file names with smart quotes cause cross-platform headaches — a file named "Report".pdf with smart quotes behaves differently on macOS, Windows, and Linux, and breaks scripts that expect ASCII-only file names.
Detecting Smart Quotes in Your Text
Or paste your text into the Invisible Character Viewer on the homepage to see every smart quote highlighted with its codepoint and name.
Frequently Asked Questions
What are smart quotes?
Why does ChatGPT use smart quotes?
Why do smart quotes break code?
How do I replace smart quotes with straight quotes?
How do I turn off smart quotes?
Related Characters
Need to detect or remove Smart Quotes characters in your text?
Open Invisible Character Viewer