Open Tools Tools Features Blog About Contact Proof of Privacy

Split Text Into Columns by Delimiter

Paste text, choose what separates the values — comma, tab, semicolon, pipe, your own character, or fixed widths — and see the columns before you export. Download as CSV or a real Excel workbook. Nothing is uploaded.

How do I split text by a delimiter?

Splitting text into columns, and what Excel does differently

Excel has Text to Columns under the Data tab, and it works. What it does not do is show you the result before committing to it, and it will not tell you when a row came out with the wrong number of fields. Both of those are how a split quietly goes wrong: one value contained the delimiter, one row shifted by a column, and the error is discovered three steps later when a total does not add up.

This page splits as you type and shows the grid. If some rows produce fewer fields than others, it says so, which is nearly always the symptom of an unquoted value containing the delimiter. Fixing that in the source and re-pasting takes seconds; finding it after the data is in a spreadsheet takes considerably longer.

Choosing what to split on

Comma is the default and the most common. Tab is what you get when text is copied out of a table in a web page, a Word document or another spreadsheet — that is the one to pick when a paste has arrived as a single column, because tabs are invisible and easy to overlook. Semicolon is standard in regional exports where the comma is a decimal separator. Pipe turns up in log files and database dumps, because it almost never occurs inside a value.

Any whitespace splits on runs of spaces or tabs, which is what you want for output from a terminal or a fixed report where the columns are aligned by padding. Fixed width is for the older case still: mainframe extracts, some banking formats and legacy reports where each field occupies an exact number of characters with no separator at all. Give the widths in order and each line is cut at those positions.

Quoted values are handled

A value that contains the delimiter has to be quoted, and the parser here respects that — including doubled quotes escaping a literal quote inside a field. This is the single most common reason a naive split produces a row one column too wide, and it is worth checking the preview for exactly that before exporting.

Separating text from numbers

A related request is splitting a mixed value such as ABC123 into its letters and its digits. That is not a delimiter problem, since there is no separator to split on — it needs a pattern. Where the boundary is consistent, fixed-width splitting handles it directly. Where it is not, the practical route is to do it in the spreadsheet afterwards with a formula, since only you know what the rule should be.

This page versus text to CSV

The two overlap and are aimed at different situations. This one is paste-and-transform: you have text in your clipboard, you want to see it as columns and get a file out. Text to CSV is file-in, file-out: you have a .txt on disk, you want a clean .csv on disk, with header handling and consistent quoting. Use whichever matches where your data is now. Both run in your browser, and for a spreadsheet with formatting rather than raw columns, text to Excel is the fuller tool.

Next steps

Related tools

What to do with the result

Browse all text and data tools, or see every QuickMerge tool.

Frequently asked questions

How do I split text by a delimiter?

Paste the text and choose the delimiter — comma, tab, semicolon, pipe, any whitespace, a custom character, or fixed widths. The columns appear as you type, so you can confirm the split before exporting to CSV or XLSX.

How do I split text into columns in Excel?

Excel has Text to Columns under the Data tab. It works, but it does not preview the result or warn you when a row came out with the wrong number of fields — which is how a split goes wrong unnoticed. Splitting here first and pasting the result in avoids that.

Why did one of my rows split into too many columns?

Almost always a value that contains the delimiter without being quoted. The parser here respects quoted fields, so quoting the affected value fixes it — or switch to a delimiter that does not occur in your data, such as tab or pipe.

How do I split fixed-width text with no delimiter?

Choose Fixed width and give the column widths in order, comma separated. Each line is cut at those character positions. This is the format mainframe extracts, some banking files and older reports still use.

How do I separate text and numbers in one cell?

That needs a pattern rather than a delimiter, since there is nothing separating them. If the boundary is always at the same position, fixed-width splitting handles it. Otherwise it is better done in the spreadsheet with a formula, because only you know the rule.

What is the difference between this and text to CSV?

This one is paste-and-transform — text in your clipboard, columns on screen, a file out. Text to CSV is file-in, file-out, with header handling and consistent quoting for a .txt already on disk.

Is my data uploaded to be split?

No. The parsing and both exports run in this browser tab. That matters given what people paste into a splitter — customer lists, payroll extracts and log data.