Skip to content
MyToolkit.pro

Local text tool

Build one safe CSV row from a list

Turn one value per line into a standards-aware CSV row with explicit delimiter and quoting rules.

Private by design — your input stays in this browser.

Try an example

CSV row report

Fields
0
Quoted fields
0

How to use it

Automatic mode follows RFC 4180-style escaping: fields containing the delimiter, a quote or a line break are wrapped in quotes, and quotes are doubled. Formula-like values remain plain data; review them before importing into spreadsheet software.

How to turn a list into a single CSV row

  1. Paste your values into One field per line, one value per line. A line break separates fields, so commas, semicolons and quotes inside a line stay part of that value.
  2. Pick a Delimiter: Comma, Semicolon or Tab. Use the character the program reading the row expects.
  3. Choose a Quoting policy. Automatic when required adds quotes only where they are needed. Quote every field wraps every value. Never quote (validate) leaves the row unquoted and shows an error if any value needs quotes.
  4. Leave Trim each field on to remove spaces before and after each value. Turn it off if leading or trailing spaces matter.
  5. Turn off Skip empty fields when a blank line should become an empty column, for example a missing middle value.
  6. The row updates as you type. The Fields counter shows how many columns it has, and Quoted fields shows how many values got quotes. Copy the row or download it.

Examples of generated CSV rows

Comma delimiter, automatic quoting. The value with a comma gets quotes, and the inner quotes are doubled:

Ada
Warsaw, Poland
She said "hello"

→

Ada,"Warsaw, Poland","She said ""hello"""

Semicolon delimiter with decimal commas, which is common in European spreadsheet locales. The commas are not the delimiter here, so nothing gets quoted:

12,5
3,75
Total

→ 12,5;3,75;Total

Keeping a blank line as an empty column (Skip empty fields off):

Quoting Input lines Output
Automatic when required first, (empty), third first,,third
Quote every field first, (empty), third "first","","third"

Tab delimiter: apple, pear, plum become apple⇥pear⇥plum, with a real tab character between the values. You can paste that into a single spreadsheet row.

Where a one-line CSV builder helps

  • Adding a header row: write the column names one per line and get a correctly escaped header to put above existing data.
  • Building a test fixture: create one record for an import test, with exactly one value containing a comma or quote, and check that your parser handles it.
  • Fixing a single broken line in a larger CSV file: rebuild that one row instead of hand-editing quotes.
  • Making an IN-style value list or a config line with a known separator, when you want to check that no value contains that separator. Never quote (validate) refuses to build the row if one does.
  • Preparing a row for a European Excel setup that expects semicolons, without quoting every decimal number.

Quoting rules and limits to know

In automatic mode, a value is quoted when it contains the chosen delimiter or a double quote. Any quote inside a quoted value is written twice, which is the escaping described in RFC 4180. Only the active delimiter counts: a comma in a value does not trigger quoting when the delimiter is Semicolon or Tab. Apostrophes never trigger quoting.

The tool builds exactly one row. Every input line becomes a column, so a value can never contain a line break. If you need multi-line cells or many rows, build a table instead. JSON to CSV turns structured records into a full file, and CSV Viewer lets you check how a finished file splits into columns.

Spreadsheet formulas are not neutralised. A line such as =SUM(A1:A3) is copied into the row as plain text, and spreadsheet software may evaluate it when you open or import the file. Remove or prefix such values yourself if the row comes from untrusted input.

The input field accepts up to 1,000,000 characters. Windows (CRLF) and old Mac (CR) line endings are treated the same as normal line breaks. If your values are separated by commas on one line instead of one per line, split them first with Split text.

Frequently asked questions

How do you escape a double quote in a CSV field?

Wrap the whole field in double quotes and write every quote inside it twice, so She said "hi" becomes "She said ""hi""". Backslash escaping is not part of standard CSV.

Should every CSV field be wrapped in quotes?

No. Quotes are only required when a field contains the delimiter, a double quote or a line break. Quoting every field is still valid and some importers expect it, though it makes the file slightly larger.

Why does Excel put my whole CSV line into one cell?

Excel uses the list separator from your regional settings, which is a semicolon in many European locales. If you build the row with the delimiter Excel expects, or use Tab when pasting, the values split into separate columns.

Is an empty value between two commas valid CSV?

Yes. Two delimiters in a row, as in a,,c, mean an empty field. Writing "" between them is an equally valid way to say the same thing.

All in Text & Lists

Join lines

Join multiple lines into one line with a space, comma, semicolon, pipe or no separator. Trim lines and skip blanks. Works entirely in your browser.

Text & Lists In your browser

Images to PDF

Combine JPG, PNG and WebP images into one PDF, entirely in your browser. No upload, no external library, no tracking.

Document Converters In your browser

CSV to XLSX

Convert a UTF-8 CSV file to Excel XLSX with delimiter, sheet name and frozen-header controls.

Document Converters File on the server

XLSX to CSV

Export a selected XLSX worksheet to correctly quoted CSV with your chosen delimiter.

Document Converters File on the server

JSON to CSV

Convert a JSON array of objects to CSV in your browser. Choose the delimiter, keep or drop the header row, with correct quoting. Nothing is uploaded.

Code & Data In your browser

CSV to JSON

Convert CSV to a JSON array in your browser. Choose the delimiter, use the first row as keys, pretty-print or minify, with RFC 4180 quoting. Nothing is uploaded.

Code & Data In your browser

What do you need?

Swipe up for the next one