TextToolboxTextToolbox
Home/Text Cleaners & Modifiers/Replace Straight with Smart Quotes

Replace Straight with Smart Quotes

Convert straight quotes to typographically correct curly smart quotes — or reverse smart to straight. Six modes including apostrophes-only and French guillemets.

Conversion Mode

Quote Character Reference

"

Straight double

U+0022

'

Straight single

U+0027

Left double “

U+201C

Right double ”

U+201D

Left single ‘

U+2018

Right single ’

U+2019

«

Left guillemet «

U+00AB

»

Right guillemet »

U+00BB

Input Text

|0 quotes

Converted Output

What Are Smart Quotes vs Straight Quotes?

Straight quotes (" and ') are the default characters typed on a standard keyboard — originally designed for typewriters. Smart quotes (also called curly quotes or typographic quotes — “ ” ‘ ’) are the typographically correct versions used in professionally typeset print and quality digital publishing. This tool converts between the two in six targeted modes.

How to Use the Smart Quotes Converter

  1. Paste text containing straight or curly quotes into the input box.
  2. Choose a mode — “Straight → Smart” is the most common conversion for publishing workflows.
  3. Review the output — check that opening and closing quotes are correctly identified.
  4. Copy or Download the converted text.

Where Can You Use Smart Quote Conversion?

Book & Article Publishing

Quality publishers require smart quotes. Pasting from Word or Google Docs often loses them — use this tool to restore typographic correctness.

Blog & CMS Content

WordPress and other CMS platforms sometimes convert quotes inconsistently. Pre-process your text for uniform output before publishing.

Design Mockups

Designers copying text into Figma or Sketch want typographically correct quotes in UI copy and prototype screens.

Source Code Cleanup

Use Smart → Straight mode to strip curly quotes from text before adding it to code — smart quotes cause syntax errors in all programming languages.

Conversion Modes Available

  • Straight → Smart — Converts all " and ' to directional curly quotes based on surrounding context (space/punctuation before = opening quote).
  • Smart → Straight — Removes all curly/typographic quotes and replaces with ASCII straight quotes. Essential before adding text to source code.
  • Single Quotes Only — Converts only single quotes and apostrophes, leaving double quotes unchanged.
  • Double Quotes Only — Converts only double quotes, leaving apostrophes and single quotes unchanged.
  • Apostrophes Only — Converts apostrophes in contractions and possessives (don'tdon’t) without touching opening or closing quote pairs.
  • French Guillemets — Replaces English double quote pairs with « text » — standard in French, German, and several European languages.

Best Practices and Limitations

Always run Smart → Straight mode before pasting text into source code, CSV files, or configuration files — curly quotes will break parsers and cause syntax errors. Use Apostrophes Only mode when you want to fix contractions in body text without affecting dialogue or quotation marks.

Limitations: The context-detection algorithm uses a left-to-right regex approach — it identifies opening quotes by the character before them (space, line start, or bracket). This works for most English text but may misidentify open/close in rare edge cases such as quotes inside parentheses or at line breaks. Always review the output for correctness in formal publishing. This tool does not parse HTML — run it only on plain text content, not HTML source with attribute values.

Share This Tool

Share this free smart quotes converter — essential for writers, editors, and publishers!

Frequently Asked Questions

What are smart quotes and why do they matter?+

Smart quotes (“” ‘’) are typographically correct directional quotation marks. They distinguish opening from closing quotes and are required in professionally typeset books, magazines, and quality digital publishing.

My code broke after I pasted smart quotes — what happened?+

Programming languages require straight ASCII quotes (" and ') as string delimiters. Smart quotes have different Unicode code points and will cause syntax errors. Use Smart → Straight mode to strip curly quotes before adding text to source code.

What is the Apostrophes Only mode for?+

Apostrophes Only converts apostrophes in contractions and possessives (don't → don’t, John's → John’s) without touching your opening or closing double quotes. Useful to fix contractions in body copy only.

What are French guillemets?+

French guillemets («») are the standard quotation marks in French, German, and several European languages. The French Guillemets mode replaces English double quotes with « text ».

Will this tool change quotes inside HTML attributes?+

Yes — the tool processes raw text and does not distinguish HTML attributes from body text. Use this tool on plain text content only, not HTML source code, to avoid breaking attribute values.