Text to CSV Converter

Rows—
Columns—
Output characters—

How Text to CSV Converter is calculated: Each line becomes one CSV row; fields split on spaces and join with your chosen delimiter, with quotes added around any field that contains the delimiter.

A Text to CSV Converter, in plain words

A text to CSV converter reshapes copied data so a spreadsheet can open it. Paste lines of space-separated values and get comma-separated rows back — or paste CSV and get plain spaced text again. It works entirely in your browser: you type or paste text, and the result appears at once, with nothing uploaded and nothing stored. People searching for a text to csv converter usually want exactly that — a quick answer without an account, a download, or a wait.

Data analysts cleaning exports, students moving tables into Excel or Google Sheets, and shop owners turning a pasted list into a file they can sort all reach for this kind of tool. Students use it for homework and puzzles, developers use it at work, and writers use it when a deadline is close. The common thread is simple: the job is small, the answer should be instant, and the text should stay private.

This page keeps that promise. The text to CSV Converter runs on your own device, so your words never leave the tab. You can use it as often as you like, on any text, and close the page knowing nothing was saved anywhere — there is no history, no log, and no sign-up standing between you and the answer.

If you have never used a tool like this before, start with the example on this page and change one thing at a time — one word, one setting — and watch the result change. That is the fastest way to learn what each input does, and it works for every tool in this family, because they all follow the same pattern: text in, result out, nothing saved.

How the Text to CSV Converter does its job

In text-to-CSV mode the tool reads your input line by line, splits each line on whitespace, and joins the pieces with your chosen delimiter. Any field that contains the delimiter, a quote, or a line break is wrapped in double quotes, with inner quotes doubled — the CSV rule that keeps a spreadsheet from splitting one field into two. In CSV-to-text mode it parses quoted fields back out and joins them with a single space per row. The rule this page uses is: Each line becomes one CSV row; fields split on spaces and join with your chosen delimiter, with quotes added around any field that contains the delimiter.

Empty lines are skipped, and every row keeps its own field count — the tool does not pad short rows, so check the column count shown above if your spreadsheet complains. A field with an unclosed quote in CSV-to-text mode is read as one field running to the end of the input, which is the standard way CSV parsers handle that error.

Because the rule never changes, the same input always gives the same output. Run the example below twice and the result will match exactly, character for character. That predictability is what makes the tool useful for checking your own work. For a different kind of text job, the JSON to CSV converter covers the next step once you have your result. The comparison section further down this page explains which of the two fits which job, so you can pick before you paste.

The rule above is the whole method — there is no hidden step and no second pass. What you see in the rule is what the tool computes, which is why the worked example below can be followed by hand, one step at a time, with a pencil if you like.

The delimiter explained

The delimiter is the character that separates fields in the CSV output — comma by default, because that is what Excel and Google Sheets expect. Tab suits pasting into some tools, semicolon suits European spreadsheet settings where the comma is a decimal mark, and pipe suits logs and plain-text tables.

With the default comma and the sample text, 'Ada 36 London' becomes 'Ada,36,London'. Switch the delimiter to semicolon and the same line becomes 'Ada;36;London'. The rows and columns stay the same — only the separator changes.

If a value itself contains a comma, such as 'New Delhi, India', the tool wraps it in quotes automatically: '"New Delhi, India",36'. Do not add the quotes yourself — doubled quotes are the most common reason a CSV file opens with a stray quote in the first cell.

When in doubt, try the worked example below first — it uses the page defaults, so it shows the tool working exactly as it ships.

Paste from anywhere — a document, a chat, a web page. The tool reads only the text you give it, so stray formatting, links, and images are left behind. If the pasted text looks odd, paste it as plain text first and then copy it in, so nothing invisible rides along.

A worked example

Take this input: two lines, 'Ada 36 London' and 'Grace 40 Paris'. With the direction set to text-to-CSV and the delimiter set to comma, each line is split on its spaces and rejoined with commas. The result is 'Ada,36,London' on the first row and 'Grace,40,Paris' on the second — 2 rows, 3 columns, and 27 characters of output.

You can verify it by counting: each row has exactly 2 commas, because 3 fields need 2 separators. Paste the output into a spreadsheet and it should land in 3 columns and 2 rows, with Ada, 36, and London in the first row.

Run it backwards to check: paste 'Ada,36,London' with CSV-to-text chosen and you get 'Ada 36 London' again. A name with a comma inside it, such as 'Ada, the Great', is quoted on the way out and unquoted on the way back.

You can check the result yourself without trusting the page. Reverse the operation — decrypt what you encrypted, or run the output back through the tool with the opposite setting — and the original input should come back. If it does not, the first thing to check is the input: a missing letter, an extra space, or a setting that changed between the two runs.

Who uses a Text to CSV Converter — and why

A shop owner copies a supplier price list out of a chat message, one item per line with the price after the name, and turns it into a CSV that opens in a spreadsheet where the prices can be sorted and totalled. It is the kind of job that comes up often enough to remember, and rarely enough to justify installing anything for.

A student copies a table from a PDF that pastes as plain spaced lines, converts it, and hands in a proper spreadsheet instead of retyping fifty rows by hand. The word counter is the natural next stop when the result needs a different treatment. It answers the question this page leaves open, so the two together cover the whole job.

A developer turns a quick log dump into a file a colleague can open in Excel, without writing a one-off script for a job that takes ten seconds in the browser.

Text to CSV Converter vs CSV to JSON Converter

The CSV to JSON converter turns the same kind of table into JSON objects for code, while this tool keeps the data in plain CSV for spreadsheets. The CSV to JSON converter is the closest comparison on this site, and the two answer different questions. Both are free, both run in your browser, and neither asks for an account.

Pick the text to CSV Converter when the destination is a spreadsheet, a CSV file, or a person reading rows. Pick the csv to json converter when the destination is code, an API, or a config file.

In practice most people keep both bookmarked. They are small, free, and private, and switching between them costs nothing — paste the same text into each and compare the outputs side by side before deciding which one fits the job in front of you. The habit that saves the most time is deciding the job first and the tool second: once you know whether you need a cipher, a conversion, or a count, the choice between two similar tools is usually obvious.

Where people go wrong with a Text to CSV Converter

Feeding it text that is already comma-separated in text-to-CSV mode: a line like 'Ada,36,London' is treated as one field, not three, because the mode expects spaces between fields. Switch to CSV-to-text, or remove the commas first.

Choosing the wrong delimiter for the spreadsheet's locale. A European Excel that expects semicolons will put a comma-separated row into a single cell — change the delimiter here instead of fixing the file afterwards.

Pasting a header row twice, once from the source and once by hand, so the first data row becomes a second header. Check the row count above: it should match the number of lines you pasted. Trusting the column count without checking it. Ragged rows — one line with two fields among lines with three — import as shifted columns, so find the short row and add the missing field before importing. The fix in every case is the same: check the input, check the setting, and test with the worked example before trusting a long result.

If the result still looks wrong after checking the input, run the worked example exactly as written. If the example works and your input does not, the difference is in your input — compare them character by character, including spaces, until the odd one out shows itself.

How to use this Text to CSV Converter

Paste your text, pick the direction, pick the delimiter, and copy the result. The conversion happens live as you type, so you can watch the row and column counts update and fix a line the moment it looks wrong. The diff checker can help with the next step once you have your output.

Keep one record per line and keep the fields in the same order on every line. If a row has fewer fields than the rest, the column count shown is the widest row — find the short row and add the missing field before importing.

The result can be copied with the buttons above it, or shared and printed from the actions on the page. If you use the tool often, bookmark the page — the address never changes, and your last input is not saved, so a fresh visit always starts clean. That also means there is nothing to clear and nothing to log out of when you are done.

Everything on this page is free, with no account and no limit on how often you use it. Your text is processed in your browser and never sent to a server, so drafts, names, and private notes stay on your device. If the result looks wrong, check the input first — a stray space or a missing character is the cause far more often than the tool itself.

Frequently Asked Questions

Text-to-CSV takes lines of space-separated values and joins the fields with a delimiter, producing CSV. CSV-to-text does the reverse: it parses CSV, respecting quoted fields, and joins the fields with spaces. Both directions run in this one tool.

Excel expects the delimiter your system locale uses — a comma in most English settings, a semicolon in many European ones. Change the delimiter here to match, or use Excel's Text to Columns on the imported column.

The tool wraps it in double quotes, so 'New Delhi, India' becomes '"New Delhi, India"'. A quote inside a quoted field is doubled, which is the standard CSV escaping rule.

No fixed limit. The conversion runs in your browser, so very large pastes — tens of thousands of lines — may take a moment, but nothing is uploaded and nothing is stored.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.