Create a CSV File Online
How to create a CSV file online, what the output contains, and what to check before you choose a tool: delimiters, quoting, encoding, spreadsheet behavior and data privacy.
The short answer
To create a CSV file online, enter or paste your data into a browser-based editor or converter, arrange it into rows and columns, and export or download the result as a file ending in .csv. The result is plain text. Each line is one record, and each value is separated by a delimiter, usually a comma. Any program that reads CSV can open it, including spreadsheets, databases and scripts.
A CSV file stores only characters. It does not store bold text, colors, column widths, merged cells, formulas shown as results, or multiple sheets. If your table looks styled in an online editor, that styling exists only in the editor's display and is lost when you export. If you need formatting to survive, use a spreadsheet format instead of CSV.
What a valid CSV file looks like
The example below shows a header row, a value containing a comma, a value containing quotation marks, and an empty field. Values that contain the delimiter, a quotation mark or a line break are wrapped in double quotes, and a quotation mark inside a quoted value is written twice. This follows the common conventions described in RFC 4180, the most widely referenced CSV specification.
id,name,city,note
1,Ana Lopez,"Austin, TX",
2,Sam Lee,Denver,"Said ""call back"" on Friday"
3,Jo Park,Boston,Prefers email
CSV or TSV
Many online tools can export either comma-separated (CSV) or tab-separated (TSV) values. The structure is the same; only the delimiter differs. Choose based on your data and what the receiving program expects.
| Format | Delimiter | Works well when | Watch for |
| CSV | Comma | The receiving system asks for .csv, which most importers do | Values containing commas must be quoted correctly |
| TSV | Tab | Your data contains many commas, such as addresses or prose | Tabs inside values; some importers accept only CSV |
What to check before choosing an online CSV tool
No specific tools were tested for this article, and no pricing or feature data was available. Use the checks below to evaluate any tool against your own data, and confirm each feature in the tool's current documentation or by trying it with a small sample.
- Quoting: Does the tool automatically quote values that contain commas, quotation marks or line breaks?
- Delimiter choice: Can you pick comma, tab, semicolon or another separator for the destination system?
- Character encoding: Does it export UTF-8, and can you choose whether to include a byte order mark (BOM)?
- Line endings: Can you choose Windows (CRLF) or Unix (LF) line endings if your destination requires one?
- Header row: Can you define column names, and does the export keep them as the first line?
- Import and paste: Can it accept data pasted from a spreadsheet or another text source without breaking columns?
- Data handling: Does processing happen in your browser, or is data uploaded to a server? Is there a stated retention and deletion policy?
- Cost and limits: Are there row, file size or export limits on a free tier? Check the current terms, since these change.
Limits that affect readability and reuse
Encoding and special characters
Accented letters, non-Latin scripts, symbols and emoji are stored correctly only if the file's encoding supports them and the destination reads it with the same encoding. UTF-8 is the safest general choice. Some spreadsheet programs may misread a UTF-8 file without a BOM and show garbled characters, while some scripts and import tools treat a BOM as an unwanted extra character in the first column name. Behavior varies by program and version, so open a small test file in your actual destination before relying on it.
Spreadsheet auto-formatting
When a CSV file is opened in a spreadsheet, the program may interpret values rather than keep them as typed. Common examples include dropping leading zeros from ZIP codes or IDs, converting text that looks like a date into a date, and rounding long numbers such as account or card numbers. The CSV file itself is unchanged until you save it again from the spreadsheet, at which point the altered values can be written back. If exact values matter, use the spreadsheet's import feature to set those columns as text, or edit the file in a plain-text editor.
Regional delimiter differences
In locales that use a comma as the decimal separator, some software expects semicolons between values. A comma-delimited file opened in such an environment may load as a single column. If your file will be shared across regions, confirm the expected delimiter with the recipient or the importing system.
Copying and pasting
Pasting rows from a spreadsheet usually produces tab-separated text, not comma-separated text. A tool that expects commas may then treat each line as one value. Pasting CSV text into chat apps, email or word processors can also change quotation marks to curly quotes or rewrap long lines, which breaks the structure. To move CSV data reliably, transfer the file itself rather than its pasted contents.
Accessibility
Because CSV is plain text, screen readers can read it, but opened in a text editor it is announced as a run of values and delimiters with no table structure, which is hard to follow for wide or long files. Opened in a spreadsheet, it gains row and column navigation. A clear, descriptive header row helps in both cases. How a given screen reader and editor handle CSV was not tested for this article; check with the tools your readers use. If people rather than software will read the data, an accessible HTML table or formatted document may be a better choice than a raw CSV file.
Formula injection
Spreadsheet programs can execute a value that begins with an equals sign, plus sign, minus sign or at sign as a formula. If your CSV contains text from untrusted sources, such as form submissions, a crafted value could run when someone opens the file. Review or sanitize such values before sharing the file, for example by prefixing them so they are treated as text.
Sensitive data and online processing
If an online tool sends your data to a server, it leaves your device and is subject to that service's storage, logging and retention practices. Whether a particular tool processes data locally in the browser or on a server cannot be assumed from its appearance; check its privacy policy and documentation. For personal, financial, health or confidential business data, prefer a tool that states it processes data locally, or create the file offline in a spreadsheet program or plain-text editor and save it as CSV.
When an offline approach is the better fit
An online CSV generator is convenient for small, non-sensitive tables and quick conversions. For confidential data, values that must stay exactly as typed, or files that a specific system will import, a desktop spreadsheet or text editor gives you more control over encoding, delimiters and privacy. In either case, the most reliable final check is to open the exported file in the program that will actually use it.