CSV Column Extractor
Keep only the columns you need from a CSV, chosen by header name, position or range, in the order you list them.
Processed locally in your browser· Your data stays in your browser.
What is CSV Column Extractor?
Exports often contain dozens of columns when you only need a few. Instead of opening a spreadsheet, you can list the columns to keep and get a smaller CSV in one step.
The columns option accepts header names (case-insensitive), 1-based positions and ranges, mixed freely: 1,3-4,email. Columns are output in the order you write them, so the tool also reorders and duplicates columns. Names containing commas can be wrapped in double quotes.
How does it work?
- Paste the CSV or open a file.
- Type the columns to keep, for example name,5 or 1,3-4,email. Use "3-" to mean column 3 to the end.
- Untick "First row is a header" if there are no column names; then use numbers only.
- Copy the result or download it, and check the preview table.
Common use cases
- Trimming a large analytics export down to the three columns a report needs.
- Reordering columns to match the layout an importer expects.
- Extracting an email column to paste into a mailing tool.
- Removing personal data columns before sharing a sample file.
Examples
Try this input in the tool above:
id,name,email,city,age 1,Alice Martin,alice@example.com,Paris,34 2,Bob Durand,bob@example.com,"Lyon, France",28 3,Chloé Petit,chloe@example.com,Nice,41 4,David Roux,david@example.com,Paris,19
name,age,city Alice Martin,34,Paris Bob Durand,28,"Lyon, France" Chloé Petit,41,Nice David Roux,19,Paris
Privacy
CSV Column Extractor runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
An unknown column name or an index beyond the last column stops the conversion with an error rather than silently skipping it.
Frequently asked questions
Can I use both names and numbers?
Yes. Tokens can be mixed, for example id,3,city. If a header is literally a number, the exact header name is matched first.
Will the columns be reordered?
Yes, the output follows the order of your list. Writing 3,1 outputs the third column first.
How do I select a column whose name contains a comma?
Wrap the name in double quotes in the list, for example "last, first",email.
Related tools
CSV Column Remover
Remove unwanted columns from a CSV by name, position or range and keep everything else exactly as it is.
JSON & Data
CSV Filter
Keep only the CSV rows that match a condition on one column, or on any column at once.
JSON & Data
CSV Sorter
Order the rows of a CSV by one column, comparing values as text, natural text, numbers or dates.
JSON & Data
CSV Viewer
Paste CSV text or open a .csv file and inspect it as a table, with row and column counts and the detected delimiter.
JSON & Data
CSV Deduplicator
Find and remove duplicate rows in a CSV, comparing whole rows or only the columns you choose.
JSON & Data
CSV Merger
Combine two CSV texts into one, either by stacking their rows or by placing them next to each other.
JSON & Data
CSV to JSON Converter
Turn CSV rows into clean JSON in one step, with typed values, custom delimiters and pretty or minified output.
JSON & Data