Change CSV Quotes
Paste CSV text or upload a file to change the quote character from double to single quotes, or control which fields get quoted
CSV (Comma-Separated Values) is one of the simplest and most universal data formats. Each line represents a row of data, with individual values separated by commas. CSV files can be opened in any spreadsheet application and are commonly used for data import/export, database backups, and exchanging tabular data between different software systems.
Swap double quotes for single quotes in your CSV — or go the other way — without breaking fields that contain the quote character. Drop a file or paste the data, pick the target style, and hit Convert. The Smart Quote toggle strips quoting from fields that don't need it, so plain text and numbers stay clean.
And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser reads each row field by field, respecting escaped quotes and embedded newlines. It strips the old quote character, re-wraps fields with the new one, and properly escapes any instances of the target quote that appear inside field values. When Smart Quote is on, plain fields (no commas, no quotes, no line breaks) stay unquoted.
Examples
Switching Double Quotes to Single for a MySQL Import
Your database import script expects single-quoted CSV but the export came with double quotes.
"name","email","city"
"Jane Doe","[email protected]","New York"
"Bob Smith","[email protected]","San Francisco"
'name','email','city'
'Jane Doe','[email protected]','New York'
'Bob Smith','[email protected]','San Francisco'
Handling Escaped Quotes Inside Fields
A product catalog where some descriptions contain the quote character itself. The converter escapes them correctly in the target format.
"sku","description","price"
"A100","12"" Laptop Screen","299.99"
"B200","8"" Tablet Case","19.50"
'sku','description','price'
'A100','12'' Laptop Screen','299.99'
'B200','8'' Tablet Case','19.50'
Stripping Unnecessary Quotes with Smart Quote
Every field is quoted, but most don't need it. Smart Quote cleans that up — only fields with special characters keep their wrapping.
"id","name","note"
"1","Alice","Regular customer"
"2","Bob","Likes red, blue"
"3","Carol","Said ""hello"""
id,name,note
1,Alice,Regular customer
2,Bob,"Likes red, blue"
3,Carol,"Said ""hello"""
Who Uses This
Fixing quote mismatches before feeding CSVs into database import scripts or ETL pipelines.
Cleaning up exported data so it loads into Python pandas or R without quote-related parse errors.
Reformatting vendor spreadsheets that use single quotes before uploading them to internal tools.
Normalizing config exports between systems that disagree on quote conventions.
Common Mistakes
If a field value has a literal double quote (like 12" screen) and you swap to single quotes without proper escaping, you get broken rows. This tool handles that automatically — but if you're doing it by hand with find-and-replace, you will break things fast.
Some systems require all fields to be quoted, even plain numbers. If you turn on Smart Quote for those imports, the receiving system might reject rows where fields like "42" lost their wrapping. Check your target system's requirements first.
This tool only touches quote characters. The comma (or whatever delimiter you're using) stays exactly as is. If you need to change delimiters, that is a separate step — use the Change CSV Delimiter tool for that.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Quote Types: Double quotes (") and single quotes (')
- Smart Quote: RFC 4180-aware — only quotes fields containing delimiters, quotes, or newlines
- File Upload: Drag-and-drop or click to browse, accepts .csv files
Frequently Asked Questions
How do I change double quotes to single quotes in a CSV file?
Paste your CSV data into the input box (or upload the file). Set the source to "Double" and the target to "Single," then click Convert. The tool re-wraps every quoted field with single quotes and handles escaped quotes inside field values automatically.
What does "Smart Quote" mean in CSV?
Smart Quote means only quoting fields that actually need it. Per the CSV standard (RFC 4180), a field needs quotes when it contains a comma, a newline, or the quote character. Plain text and numbers can stay unquoted. This keeps files smaller and easier to read.
Will this tool change my CSV delimiter?
No. It only touches the quote characters. Your commas, tabs, semicolons — whatever delimiter you have — stay exactly the same. If you need to swap delimiters, there is a separate Change CSV Delimiter tool for that.
How are escaped quotes handled when converting?
In standard CSV, a double quote inside a double-quoted field is escaped as two double quotes (""). When converting to single quotes, those become two single quotes (''). The tool parses each field properly so escaped characters don't break your data.
Is my CSV data safe? Does it get sent to a server?
Your data stays on your device. The entire conversion runs in JavaScript inside your browser — no server calls, no uploads, no logging. Close the tab and it is gone. Safe for sensitive data like customer lists or financial records.