Skip to content

Browser tool

Select and reorder CSV columns

Choose the columns to keep and put them in the order you need. Column numbers distinguish two identical headings, even when both are blank.

Choose and reorder columns

Add columns in the order you want in the output. Column numbers distinguish repeated or empty headings.

Use UTF-8 CSV, TSV or semicolon-delimited text. Use up to 100,000 characters (some count as two), 2,000 data records and 64 columns. For original line endings, open the file directly.

0 / 100,000

Clear this option to include the first record as data.

Output column order

No columns selected.

Enable JavaScript to use this tool in this tab.

Open a UTF-8 file, paste delimited text or try the sample.

Identify the first record

Open a CSV file or paste a table. Choose its delimiter and indicate whether the first record contains headings. For a file that starts with data, keep that first record as data.

Choose columns by position

Count from the left starting at 1. To put an identifier from the fourth column ahead of the first column, select 4 then 1. Choose each position once. Check the selected headings against the source file before exporting.

Check the rows

The rows keep their original order. Use the JSON output to check a leading zero, a space at either end of a cell or a line break inside a quoted field. If a row has the wrong number of fields, check the delimiter and correct the input before continuing.

Choose an output

Use CSV for another table or JSON to keep the selected values as strings. The CSV export adds an apostrophe to cells and headings that meet its formula-prefix rule. The JSON lists the affected CSV positions.

Continue with a check