CSV Escape
Wrap a value in quotes and double any quotes inside it, so it survives a CSV field.
Runs entirely in your browser.
Escape a Value for CSV
About CSV Escape
A CSV field that contains a comma, a quote or a line break has to be wrapped in double quotes, and any quote inside it has to be written twice. So She said "yes", then left becomes "She said ""yes"", then left" - one field, not two.
This is the rule from RFC 4180, and it is why hand-built CSV so often breaks: a value with a comma in it silently becomes two columns. If you are converting whole documents rather than single values, JSON to CSV and CSV Viewer handle the quoting for you.
Other Escaping Tools
- Escape / Unescape — every format on one page
- SQL Escape — quotes and backslashes for SQL literals
- Regex Escape — escape regular expression metacharacters
- XML Escape — the five reserved XML characters
- Backslash Escape — newlines and tabs as \n and \t
- HTML Entities — encode and decode HTML entities
- URL Encode / Decode — percent-encoding
- JSON Stringify — escape JSON into a string literal