Skip to content
UniKit

CSV quote escaper

Quote CSV fields in bulk (inner quotes doubled as "") or switch to RFC 4180 minimal quoting that only escapes fields that need it; the delimiter is configurable.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

CSV text
Quote every fieldTurn off to quote only fields containing the delimiter, a double quote or a line break (RFC 4180 minimal quoting).

Escaped CSV

Inner double quotes are doubled as "", line breaks normalise to LF.

Enter CSV to see the escaped output

Input is parsed line by line, so multi-line fields (quotes spanning lines) are not supported. The delimiter can be any single character such as ; or a tab.

What this tool does

  • Turn bare CSV exported from a spreadsheet into fully quoted CSV that imports cleanly elsewhere.
  • Switch to minimal quoting so only fields with a delimiter, a quote or a line break get quotes.
  • Change the delimiter to ; or a tab to convert CSV from other locales or tools.

Example

Input

name,age
Alice,20

Output

"name","age"
"Alice","20"

Every field is quoted by default; inner " becomes "".

Frequently asked questions

Why quote every field by default?

That is the classic use of a CSV quote escaper: exported CSV wraps every field in quotes so Excel and database importers read it consistently. Turn "Quote every field" off for tighter output.

What is the minimal-quoting rule?

RFC 4180: quote a field only when it contains the current delimiter, a double quote or a line break. The check uses your configured delimiter, not a hard-coded comma.

How are inner double quotes handled?

They are doubled as "" (x"y becomes "x""y"), the standard CSV form that parses back to a single quote.

Are multi-line fields supported?

No. Input is split line by line (CRLF / CR normalised to LF); a quote spanning lines raises an error instead of being silently mis-split.

What does the quoted-field count mean?

It counts fields that actually ended up wrapped in quotes. In minimal mode it is far smaller than the field count, which is a quick way to confirm the mode took effect.

Keywords:CSVquoteescapeRFC 4180excel

Related tools