Delete CSV Columns
Delete CSV columns by index or name with proper RFC 4180 parsing (quoted fields, embedded commas, multi-line values handled). Free, offline, client-side, instant, secure.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Remove specific columns from CSV data using 1-based index, 0-based index, or header name. Proper RFC 4180 parsing handles quoted fields with embedded commas, escaped "" quotes, and multi-line values.
Click to upload CSV or drag & drop
.csv /.tsv /.txt - or paste below
How to Use Delete CSV Columns
- Upload a CSV file (drag-drop or click - auto-detects delimiter) OR paste CSV text.
- Pick a selection mode: 1-based (most natural - "column 3" = the third column), 0-based (programmer convention), or by header name.
- Enter the columns to delete in the selection field. For name mode, write headers exactly as they appear (case-sensitive). For index modes, comma-separated numbers like
1,3,5. - Detected headers appear as clickable chips (when First-row-is-header is on) - click any chip to add/remove that column from the selection.
- Toggle Invert to keep the listed columns and delete the rest (useful for "I want just columns 1, 3, 5" workflows).
- Pick the right delimiter (comma is default; tab for TSV, semicolon for European CSV).
- Live preview updates after 200 ms. Ctrl+Enter recalculates manually.
- Copy or download
filtered.csvwith proper RFC 4180 quoting preserved.
Frequently Asked Questions
What’s RFC 4180 and why does it matter?
RFC 4180 is the de-facto CSV standard. It specifies: (a) fields can be enclosed in double quotes; (b) embedded delimiters/newlines are allowed inside quotes; (c) embedded quotes are escaped by doubling (""); (d) quote-enclosed fields can span multiple physical lines. Naive line/comma splitting fails all of these. Real-world CSVs from Excel, Google Sheets, government data portals, and pandas all use RFC 4180 conventions.
1-based vs 0-based vs by name?
1-based (default): “column 3” means the third column. Matches how spreadsheets and humans count. Use this unless you have a programming reason not to. 0-based: “column 0” means the first column. Matches array indexing in most programming languages. Use for compatibility with scripts. By name: write header text exactly as it appears (case-sensitive). Works only when First-row-is-header is on. Most reliable against column reordering.
How does the header click chip work?
When First-row-is-header is on AND CSV has data, the parsed headers appear as clickable buttons under the options. Click any chip to add (or remove) that column from the selection. The selection field updates with the correct token for the current mode (1-based number, 0-based number, or name).
What’s “Invert” mode?
Inverts the selection logic. Without invert: “delete columns 1, 3, 5”. With invert: “delete EVERYTHING EXCEPT columns 1, 3, 5” (i.e., keep only those). Useful for the common “I just want these specific columns” workflow without listing all the columns you don’t want.
How are quoted fields preserved on output?
The serializer quotes a field only when necessary: if it contains the delimiter, a quote character, a newline, or a carriage return. Inner quotes are doubled (" → ""). This matches Excel’s behavior and round-trips through any RFC 4180 parser. Fields without special characters are emitted unquoted (compact output).
What if my CSV has irregular row lengths?
Handled. Each row is processed independently. If row 5 has only 3 fields but the header has 5, the row passes through with its 3 fields minus whichever match the deleted indices. Output may have varying row lengths (preserves input irregularity). Use a CSV validator/normalizer if you need uniform widths.
What about TSV (tab-separated)?
Pick “Tab” in the delimiter selector. Drag-drop a .tsv file and the auto-detector picks tab if present. All RFC 4180 rules still apply but with tab instead of comma. Note: very few exporters quote-and-escape in TSV (it’s typically uncommon to have tabs inside cell values), but the tool handles it if you do.
European CSV (semicolon-separated)?
Pick “Semicolon” in the delimiter selector. Auto-detection picks semicolon if your sample contains ; but no , (heuristic – works for most cases). European Excel exports use semicolon when the locale’s decimal separator is a comma (so 1,5 isn’t ambiguous with field separation). Same RFC 4180 rules apply.
Is my data secure?
Yes. All parsing and filtering happens in your browser using vanilla JavaScript. Your CSV file/text never leaves your device. The download is generated in-memory.
Related Tools
Append CSV Columns →
Easily append columns in CSV files online. Merge datasets quickly with a free, secure…
Convert CSV Columns to Rows →
Convert CSV Columns to Rows transpose tool. Converts columns to rows with RFC 4180…
Convert CSV Rows to Columns →
online CSV transpose tool. Converts rows to columns with RFC 4180 quoted-field support. Client-side,…
Extract CSV Columns →
Extract columns from CSV by name, 1-based index, or range - RFC 4180 parser,…
Sort CSV by Column →
Sort the rows of your CSV by a column you choose, in ascending or…
Swap CSV Columns →
Swap two columns in your CSV so their positions are exchanged in every row.…
Trim CSV Columns →
Trim leading and trailing whitespace from every field in your CSV for a tidy…
Add Quotes to CSV Online - CSV Quote Wrapper →
Add quotes to CSV fields instantly. Wrap values in double or single quotes, support…
Convert CSV Delimiter →
Convert CSV Delimiter between comma, tab, semicolon, pipe, or custom delimiters. Free, offline -…
Base64 to CSV Decoder →
Decode Base64 to CSV text - BOM stripped, delimiter auto-detected, URL-safe variant supported. Free,…
Convert CSV Quote Character →
Convert CSV quote characters instantly with our free online tool. Replace single or double…
Convert CSV to Base64 →
online CSV to Base64 encoder. Standard and URL-safe, MIME line-wrap, UTF-8 safe. Client-side, instant,…