🔒 100% private — runs in your browser, nothing is uploaded

CSV Column Extractor

Keep only the columns you need from CSV or delimited text — tick the columns, get a clean smaller file with the same delimiter.

Most real-world table work is subtraction: an export arrives with thirty columns and the job needs four. This extractor does exactly that subtraction and nothing else — you choose columns by name from the header row, and every row is re-emitted with only those cells, in the original order, joined by the same delimiter the input used. The parser is a proper quote-aware state machine, not a split on commas: a field written as "Smith, John" stays one field, a doubled quote inside a quoted field becomes one quote, and a quoted field may even contain a line break without breaking its row. Worked example: the sample in the box parses as 3 rows × 4 columns (name, city, score, team); untick city and team and the output is exactly “name,score” followed by Ada,92 — Linus,88 — Grace,95, one row per person, header included.

Columns to keep (from the first row)

Your text and any file you open are processed in page memory on your device only: they are never uploaded, never stored and never put into a link, and refreshing the page clears everything. The extractor keeps the columns you tick, in their original order, and quotes output cells that need it.

Quick answers

How do I extract specific columns from a CSV file?

Open or paste the file, confirm the delimiter (Auto-detect covers comma, semicolon, tab and pipe), tick only the columns you want in the checklist built from the header row, then copy or download the result. The sample table (name, city, score, team) with city and team unticked gives exactly name,score and the three data rows.

Parsing is quote-aware, so commas inside quoted fields never split a column, and output cells are re-quoted when they need it.

What is the difference between extracting columns and a pivot table?

Extraction only removes columns — every value and row survives unchanged, in the original order. A pivot table changes the data itself: it groups rows and aggregates values (sums, counts, averages). Use this page to narrow a file; use the Pivot Table Maker to summarise one.

The two pair naturally: extract the columns you need first, then pivot the smaller table.

How to use

  1. Paste delimited text into the box, or open a .csv / .tsv / .txt file — the file is read locally in your browser and never uploaded.
  2. Check the delimiter: Auto-detect handles comma, semicolon, tab and pipe files; pick one manually if your file is unusual.
  3. Tick the columns to keep in the checklist built from the first row. Untick a column and it disappears from the output at once; the remaining columns keep their original order.
  4. Copy the result or download it as a .csv file. Quoted fields are parsed properly, so a comma inside a quoted name never splits a column, and output cells that contain the delimiter are quoted again.

About this tool

Two neighbours do different jobs, and the pages are kept separate on purpose. The Pivot Table Maker aggregates — it groups rows and sums or counts values — while this page never changes a value, it only drops columns. The Excel to JSON Converter changes format, turning a spreadsheet into JSON objects; this page keeps the delimited-text format and only narrows it. If your file is an .xlsx workbook rather than delimited text, convert a sheet to JSON or save it as CSV first, then extract here. Everything runs in page memory: paste, tick, copy, done — refreshing the page wipes the table, which is the correct behaviour for data you did not mean to store anywhere.

How it works

There is no arithmetic in this tool — the guarantee is structural: output rows = input rows, output columns = the ticked subset of input columns in their original relative order, and every cell value is carried across byte-for-byte (with quoting added only where the output format requires it).

Delimiter auto-detection scores each candidate (comma, semicolon, tab, pipe) by how consistently it splits the first rows into equal column counts, then by total splits.

What this tool can’t do

The first row is treated as the header that names the columns. A file without a header still works — the checklist falls back to Column 1, Column 2… — but named columns are far easier to pick correctly.

Only delimited text is parsed. A binary .xlsx workbook must be saved as CSV (or converted with the Excel to JSON Converter) before its columns can be extracted here.

Very large pastes (hundreds of thousands of rows) are limited by your browser’s memory; the tool warns about nothing and simply does its best — for files that size, a command-line tool is the better instrument.

Worked examples

Narrowing an export: name,city,score,team with city and team unticked → “name,score” plus Ada,92 / Linus,88 / Grace,95. Three rows in, three rows out.

Quoted comma survives: A row “Smith, John”,42 parses as two fields, not three, because the comma sits inside quotes — extracting the second column returns 42 — the comma stayed inside the name, where it belongs.

Semicolon file: name;city;score with Auto-detect picks the semicolon (every row splits into 3), and the output keeps semicolons as its delimiter.

Delimiter quick reference

DelimiterWhere you meet itWatch out for
Comma ,US / UK exports, most APIsCommas inside names and addresses — quoting matters
Semicolon ;European Excel exportsChosen because the comma is a decimal separator there
TabCopy-and-paste from spreadsheetsInvisible in a text editor — Auto-detect finds it
Pipe |Data pipelines, log exportsRarely appears inside values, so quoting is uncommon

Frequently asked questions

Does the extractor handle quoted fields with commas inside?

Yes. Parsing follows the usual CSV quoting rules: a field wrapped in double quotes may contain the delimiter, line breaks and doubled quotes ("" means one literal quote), and none of those split the field. On output, any cell containing the delimiter, a quote or a line break is wrapped in quotes again with its quotes doubled.

Which delimiters are supported?

Comma, semicolon, tab and pipe — chosen manually, or by Auto-detect, which tests each candidate on your first rows and prefers the one that splits every row into the same number of columns. European exports usually use semicolons; spreadsheet copy-and-paste usually arrives as tab-separated text.

Is my file uploaded anywhere?

No. A file you open is read by your browser into page memory, the extraction happens locally, and the download is built locally too. Nothing is uploaded, stored or put into a link — the table you paste is exactly as private as the file on your own machine.

What happens to rows with missing or extra cells?

They are kept, not silently dropped: a short row contributes empty cells for the columns it lacks, and cells beyond the header width are simply not offered in the checklist. The row count in the result line lets you check nothing vanished — input rows and output rows always match.

📦 Embed this tool on your site

<iframe src="https://verystep.com/embed/csv-column-extractor/" title="CSV Column Extractor" width="100%" height="520" loading="lazy" style="border:0"></iframe>

Free to use. The embed shows a small "Powered by Verystep" link.

First time embedding? Read the step-by-step guide →

More free tools