How to use
Use this when your CSV has inconsistent delimiters/quotes or breaks imports.
- Paste CSV into the input box.
- Choose auto-detect (or set the input delimiter), and pick output delimiter/quotes.
- Click Format CSV (or Generate Python).
- Copy the output or download it from your browser.
FAQ
Does this tool run Python in the browser?
No—formatting runs locally in your browser with JavaScript, and the tool can generate a Python snippet you can run separately.
How does auto-detect delimiter work?
It checks common delimiters (comma, semicolon, tab, pipe) across the first non-empty lines and picks the best match.
Will it preserve commas inside quoted fields?
Yes. Quoted fields are parsed correctly, including escaped quotes like "".
What happens when rows have different column counts?
You can either pad shorter rows with empty fields or fail with a clear error showing the row number.
Can I disable quotes entirely?
Yes, but it becomes strict: if any field contains the delimiter or a newline, formatting will error because it can’t be represented safely without quoting.
Does it change line endings?
If enabled, it normalizes output to Unix newlines (\n) for consistency across platforms.
Where should I validate the CSV structure (headers, types, etc.)?
Use the CSV Format Checker for structural validation; this tool focuses on normalization and re-serialization.