How to use the column extractor
- Paste your rows into Delimited lines (CSV, TSV …).
- Type the column in Column(s): one number like
2, a list like1,3, or a range like2-4. - Choose the Delimiter: comma, tab, semicolon, pipe, spaces or Custom… (then fill in Custom delimiter).
- Keep Respect “quoted, fields” ticked for real CSV files. Tick Skip the first line to drop a header.
- Copy the result.
What it does and when to use it
Exports from shops, mailing tools, banks and databases often hold far more columns than you need. Opening a spreadsheet just to copy one column is slow, and for text from a log or a terminal it may not be possible at all. This tool works straight on the text.
Typical jobs:
- Pull the email column from a sign-up export, then clean it with remove duplicates.
- Take the prices out of a tab-separated report and add them up with the number extractor.
- Keep only name and city from a contact list by typing
1,3.
For a spreadsheet-style view of a whole CSV file, the CSV column extractor in the data tools may suit you better. This tool is aimed at quick copy-and-paste work.
How it works
The tool reads the text line by line and skips blank lines. If Skip the first line is ticked, it drops the first line before anything else. Each remaining line is split at the delimiter. With quotes respected, a field that starts with a double quote runs to the closing quote, so "Lee, Sam" stays one field, and a doubled quote "" inside it becomes one quote. The Spaces option treats a run of spaces as one break, which suits aligned columns. The requested columns are picked out and joined with the input delimiter. When several columns are joined and quotes are respected, a value that holds the delimiter or a quote is wrapped in quotes again, CSV style. Everything runs in your browser.
Worked examples
These outputs come from the tool’s own function.
One CSV column. From a three-row list of names, emails and cities, column 2 gives email, asha@example.com and sam@example.com. The comma inside "Lee, Sam" did not shift the columns.
A range from tab-separated data. With rows id name qty price, 1 pen 4 1.20 and 2 ink 1 6.00 separated by tabs, Column(s) 2-4 and Tab gives the name, quantity and price, for example pen 4 1.20, still tab-separated.
Reordered columns and a short row. Rows a,b,c, 1,2,3, a blank line and 4,5, with Column(s) 3,1, give c,a, 3,1 and ,4. Column 3 came first, the blank line was skipped, and the missing third value in 4,5 came out empty.
Limits and tips
- Quotes are added back only when several columns are joined:
Lee, Samtaken with another column comes out as"Lee, Sam",Leeds, which stays valid CSV. A single column comes out as plain values without quotes. - A column number larger than any row gives empty lines.
- Quotes are only special at the start of a field.
Frequently asked questions
How are columns numbered?
Can I get several columns at once?
What if a row is shorter than the others?
How do I keep the header row out of the result?
Does it work with data copied from Excel or Google Sheets?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.