How to Extract Specific Columns from CSV or Delimited Text

You have a CSV export with a dozen fields and you only need two of them - maybe just the name and the email, or just an ID column to feed into something else. Opening it in a spreadsheet to delete every unwanted column by hand works, but it's slow for anything you do more than once.

Quick answer

To extract specific columns from CSV or delimited text, paste the data into a column extractor tool, set the delimiter to match your data, and enter the column numbers you want (like 1,3). Only those fields are kept, in the order you specify - everything else is dropped.

Pull out just what you need

Open Column Extractor →

How it works

Input (Extract: 1,3)

Alice,30,Engineer
Bob,25,Designer
Carol,35,Manager

Output

Alice,Engineer
Bob,Designer
Carol,Manager
  1. Paste your delimited text into the input panel.
  2. Set the delimiter to match your data - comma, tab, pipe, or another separator.
  3. Enter the column numbers you want, separated by commas. Columns are numbered from 1, left to right.
  4. The output updates instantly with only the columns you asked for, in that order.

Reordering columns

The order you type the column numbers is the order they come out in - it doesn't have to match the original layout. Extracting 3,1 from a name/age/job line puts the job title first and the name second, even though name was originally first.

Common uses

  • Pulling just the email or ID column out of a wide export to get a clean plain list.
  • Dropping columns with sensitive data before sharing an export with someone else.
  • Reordering fields to match a different system's expected column order before importing.
  • Isolating one field for use as input into another tool - like a list of names for the Compare Two Lists tool.

Need the whole thing readable, not just some columns?

The Text Columnizer aligns every column into a table instead of removing any.

Try Text Columnizer →

Frequently Asked Questions

How do I pull just one column out of a CSV export?
Paste the data into the Column Extractor, set the delimiter to match your data, and enter the column number. Column 2 pulls the second field from every line and discards the rest - handy for pulling out just the email addresses or IDs from structured data.
What counts as a "column" here?
Any field on a line, separated by whatever delimiter you set - not just CSV. Columns are numbered from 1, starting at the left. "Alice,30,Engineer" split on commas has column 1 = Alice, column 2 = 30, column 3 = Engineer.
Can I extract more than one column at once?
Yes. Enter the column numbers separated by commas, like 1,3, to pull the first and third fields from every line while skipping the second.
Can I change the order the columns come out in?
Yes - the order you type the numbers is the order they appear in the output. Entering 3,1 puts column 3 first and column 1 second, even though column 1 came first in the original data.
What happens if a line doesn't have as many columns as I'm asking for?
Missing columns are simply skipped for that line rather than causing an error. If you request columns 1,3,5 but a line only has 3 fields, you get columns 1 and 3 for that line and nothing where column 5 would be.
Can I change what separates the extracted columns in the output?
Yes, via the Output Delimiter setting. You can reuse the same delimiter as the input, switch to double-space (for readability), or pick a different character entirely.
How is this different from the Text Columnizer?
The Column Extractor removes columns you don't want, keeping only the ones you specify. The Text Columnizer keeps every column but reformats them into an aligned, readable table. Use Extractor to isolate specific fields; use Columnizer to make the whole thing readable.

Share this tool

Featured on ToolDirs
© 2026 ListDiff

Free online list and text processing tools.