How to turn a list into a single CSV row
- 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.
- Pick a Delimiter: Comma, Semicolon or Tab. Use the character the program reading the row expects.
- 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.
- Leave Trim each field on to remove spaces before and after each value. Turn it off if leading or trailing spaces matter.
- Turn off Skip empty fields when a blank line should become an empty column, for example a missing middle value.
- 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.