Our Network


Coming Soon


Coming Later

csv column deleter

world's simplest csv tool

Free online CSV column deleter. Just upload your CSV file in the form below, specify the columns to remove, and it will automatically remove the specified columns from the data. In the tool options, you can enter just one column, several columns, or a range of columns that you want to delete. Also, you can remove unnecessary empty lines and comments from the CSV file. Created by programmers from team Browserling.

᠎᠎᠎          Tool Options

Columns to Delete

Column numbers to delete, for
example "1", "1, 3", or "1-4".
Column headers to delete, for
example "name", "age", "city"
(enter one per line).
If two or more columns have
the same header, then
delete all matches.

Output CSV Format

Delete only the values within
the selected column(s), leaving
empty fields in their place.
Enter the symbol that starts a
comment line, and activate the
checkbox above to remove it.
Remove all empty rows from
the output CSV.

What is a csv column deleter?

This tool removes unwanted columns from the given CSV file. It allows you to quickly clean your CSV data, remove duplicate columns, and keep only the relevant information. There are two ways to remove columns from a CSV. The first method for column removal is by their position. The first column (on the left) in a CSV file has the position "1", the second has the position "2", the third – "3", and so on. You can identify the position of the unwanted column in the options by this number and exclude it from the output. If a CSV file has many columns, then you can get lost in column positions. To avoid mistakes, the positions of the last and second-to-last columns use negative position values: the last column is "-1", the second-to-last is "-2", and so on. Multiple columns can be removed simultaneously as well. For example, to remove the first and last columns, you can enter "1, -1" in the options, or to remove the second and fifth columns, you can enter "2, 5" in the options. Additionally, you can input a range of columns, such as "1-3", which results in the removal of columns 1, 2, and 3. Another method for column removal is by their header (also known as column name). The header is located on the first row of each column. By entering the top value, you can remove the entire column. If there are duplicate headers in the CSV, you can choose the option to delete all header copies and remove all columns with the same name. By default, the specified column in the options is completely removed from the output data. However, by activating the "Preserve Column Structure" option, you can delete only the values within the columns, leaving empty fields (separated by two commas) in their place. Additionally, you can clear the output data from comments by activating the "Clean Data from Comments" option. If certain records are marked as comments and start with a specific symbol, such as "#" or "//", you can specify this symbol in the options. Also, you can clear the output data from empty rows that are often used to visually separate data into logical groups by using the "Clean Data from Empty Rows" checkbox. Csv-abulous!


Csv column deleter examples

Click to try

Delete an Unnecessary CSV Column

In this example, we input a two-column CSV file containing information about various flowers. The first column is the flower's name and the second column is the flower's ID from our database. As we're working with just the flower names, we no longer need the ID information. To remove the "Id" column, we enter its position in the options (set it to "2") creating a new CSV output file that contains just the desired flower names as a single column and nothing else.

Flower,Id Daisy,001 Sunflower,002 Iris,003 Hyacinth,004 Marigold,005
Flower Daisy Sunflower Iris Hyacinth Marigold
Required options
These options will be used automatically if you select this example.
Column numbers to delete, for
example "1", "1, 3", or "1-4".
If two or more columns have
the same header, then
delete all matches.
Delete only the values within
the selected column(s), leaving
empty fields in their place.
Enter the symbol that starts a
comment line, and activate the
checkbox above to remove it.
Remove all empty rows from
the output CSV.

Remove Duplicate Columns in CSV

In this example, we're working with a CSV dataset that includes information about chemical elements, such as their names, symbols, and atomic numbers. Unfortunately, due to a program error during data export, some columns were duplicated several times. To fix this mess and get a single instance of each column, we delete all repeated columns at once by their positions. We get rid of columns 2, 3, 4, and 6, using the notation "2-4, -1", which is the same as "2, 3, 4, 6". The "2-4" here means a range and "-1" is a quick code for the last, 6th column (think of counting backwards from the end). As a result, we get a perfectly clean CSV with three unique columns.

element,symbol,symbol,symbol,symbol,atomic_number,atomic_number Hydrogen,H,H,H,H,1,1 Helium,He,He,He,He,2,2 Lithium,Li,Li,Li,Li,3,3 Beryllium,Be,Be,Be,Be,4,4 Boron,B,B,B,B,5,5
element,symbol,atomic_number Hydrogen,H,1 Helium,He,2 Lithium,Li,3 Beryllium,Be,4 Boron,B,5
Required options
These options will be used automatically if you select this example.
Column numbers to delete, for
example "1", "1, 3", or "1-4".
If two or more columns have
the same header, then
delete all matches.
Delete only the values within
the selected column(s), leaving
empty fields in their place.
Enter the symbol that starts a
comment line, and activate the
checkbox above to remove it.
Remove all empty rows from
the output CSV.

Delete CSV Columns by Header

In this example, we use the option to delete CSV columns by header. The header is the top row of the CSV file and it includes comma-separated names of the data columns. We load data about coffee drinks in the input and specify the header "milk" in the options for removal. As the "milk" column appears twice, to remove both column copies with this name, we activate the "Delete All Header Copies" option. Additionally, we activate the "Preserve Column Structure" option, which instead of completely erasing the columns from the output, sets all values in the column to empty values (empty values are separated by two adjacent commas). And just to make everything tidy and neat, we clean up the output data by removing empty lines and comments starting with the double-slash symbol "//".

drink,size,milk,caffeine,milk Espresso,30ml,No,60mg,30ml Americano,220ml,No,70-80mg,220ml Latte,240ml,Yes,100-120mg,240ml Cappuccino,180ml,Yes,90-100mg,180ml Mocha,300ml,Yes,130-150mg,300ml Macchiato,60ml,No,40-60mg,60ml Flat White,200ml,Yes,80-100mg,200ml Cortado,110ml,Yes,50-60mg,110ml // Irish Coffee,240
drink,size,,caffeine, Espresso,30ml,,60mg, Americano,220ml,,70-80mg, Latte,240ml,,100-120mg, Cappuccino,180ml,,90-100mg, Mocha,300ml,,130-150mg, Macchiato,60ml,,40-60mg, Flat White,200ml,,80-100mg, Cortado,110ml,,50-60mg,
Required options
These options will be used automatically if you select this example.
Column headers to delete, for
example "name", "age", "city"
(enter one per line).
If two or more columns have
the same header, then
delete all matches.
Delete only the values within
the selected column(s), leaving
empty fields in their place.
Enter the symbol that starts a
comment line, and activate the
checkbox above to remove it.
Remove all empty rows from
the output CSV.

Pro tips Master online csv tools

You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!

https://onlinetools.com/csv/delete-csv-columns?input=Flower%2CId%0ADaisy%2C001%0ASunflower%2C002%0AIris%2C003%0AHyacinth%2C004%0AMarigold%2C005&use-column-number=true&column-number=2&delete-all=true&preserve-column=false&remove-comments=true&comment-character=%2523&remove-empty-lines=true

All CSV Tools

Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Convert CSV to JSON

Quickly convert a CSV file to a JSON data structure.

Convert JSON to CSV

Quickly convert a JSON data structure to a CSV file.

Convert CSV to XML

Quickly convert a CSV file to an XML file.

Convert XML to CSV

Quickly convert an XML file to a CSV file.

Convert CSV to YAML

Quickly convert a CSV file to a YAML file.

Convert YAML to CSV

Quickly convert a YAML file to a CSV file.

Convert CSV to TSV

Quickly convert a CSV file to a TSV file.

Convert TSV to CSV

Quickly convert a TSV file to a CSV file.

Convert CSV to Text Columns

Quickly convert a CSV file to evenly aligned text columns.

Convert Text Columns to CSV

Quickly convert text columns to a CSV file.

Convert CSV to Base64

Quickly encode CSV to base64.

Convert Base64 to CSV

Quickly decode base64 to CSV.

URL-encode CSV

Quickly convert CSV to URL-encoding.

URL-decode CSV

Quickly decode CSV from URL-encoding.

Change CSV Delimiter

Quickly change the CSV column delimiter to a new symbol.

Prepend a CSV Column

Quickly prepend columns at the beginning of a CSV file.

Append a CSV Column

Quickly append one or more new columns at the end of a CSV file.

Insert a CSV Column

Quickly insert one or more new columns anywhere in a CSV file.

Extract a CSV Column

Quickly export one or more columns from a CSV file.

Replace a CSV Column

Quickly replace any column in a CSV file with a new one.

Delete a CSV Column

Quickly delete one or more columns from a CSV file.

Swap CSV Columns

Quickly swap two columns in a CSV file.

Convert CSV Columns to Rows

Quickly exchange columns with rows in a CSV file.

Convert CSV Rows to Columns

Quickly exchange rows with columns in a CSV file.

Transpose CSV

Quickly transpose a CSV file.

Truncate CSV Columns

Quickly truncate columns in a CSV file.

Trim CSV Columns

Quickly left-trim and right-trim column values in a CSV file.

Sort CSV Columns

Quickly sort data in one or more CSV columns.

Remove CSV Quotes

Quickly remove double quotes from all CSV fields.

Add CSV Quotes

Quickly wrap all CSV fields in double quotes.

Change CSV Quote Character

Quickly change the character that CSV fields are wrapped in.

Validate CSV

Quickly make sure the given CSV file doesn't have errors.

Find Incomplete CSV Records

Quickly find rows and columns in CSV that are missing values.

Fill Incomplete CSV Records

Quickly fill missing CSV values with placeholder values.


Coming Soon

These CSV tools are on the way!
Edit CSV in the Browser

Edit the contents of a CSV file in a neat editor.

Deduplicate CSV Data

Remove duplicate rows in a CSV file.

Print CSV Statistics

Display detailed information about a CSV file.

Convert CSV to HTML

Convert a CSV file to an HTML table.

Convert HTML to CSV

Convert an HTML table to a CSV file.

Convert CSV to Markdown

Convert a CSV file to a Markdown table.

Convert Markdown to CSV

Convert a Markdown table to a CSV file.

Convert CSV to ASCII Table

Draw an ASCII table from CSV data.

Convert CSV to ANSI Table

Draw an ANSI table from CSV data.

Convert CSV to Unicode Table

Draw a Unicode table from CSV data.

Convert CSV to PDF

Convert CSV to a PDF document.

Convert PDF to CSV

Extract data from a PDF and create a CSV file.

Convert CSV to an Image

Draw a CSV file as a PNG, JPG or GIF picture.

Convert Image to CSV

Extract data from an image and create a CSV file.

Convert CSV to Excel

Convert a CSV file to an Excel spreadsheet.

Convert Excel to CSV

Convert an Excel spreadsheet to a CSV file.

Convert CSV to vCard

Convert a CSV file to a vCard file.

Convert vCard to CSV

Convert a vCard file to a CSV file.

Convert CSV to LaTeX

Convert CSV to a LaTeX table.

Convert CSV to SQL

Generate SQL insert queries from a CSV file.

Convert SQL to CSV

Create a CSV file from SQL query results.

Convert CSV to qCSV

Convert a CSV file to a qCSV (quoted CSV) file.

Convert qCSV to CSV

Convert a qCSV (quoted CSV) file to a CSV file.

Convert CSV to INI

Convert a CSV file to an INI file.

Convert INI to CSV

Convert an INI file to a CSV file.

Convert CSV to JSONL

Convert a CSV file to a JSONL (JSON Lines) file.

Convert JSONL to CSV

Convert a JSONL (JSON Lines) file to a CSV file.

Convert CSV to TXT

Convert a CSV file to a plain text file.

Convert TXT to CSV

Convert a plain text file to a CSV file.

Convert CSV to 0SV

Convert a CSV file to a null-separated values file (0SV).

Convert 0SV to CSV

Convert a null-separated values file (0SV) to a CSV file.

Convert CSV to SSV

Convert a CSV file to a semicolon-separated file (SSV).

Convert SSV to CSV

Convert a semicolon-separated file (SSV) to a CSV file.

Convert CSV to HSV

Convert a CSV file to a hash-separated file (HSV).

Convert HSV to CSV

Convert a hash-separated file (HSV) to a CSV file.

Convert CSV to PSV

Convert a CSV file to a pipe-separated file (PSV).

Convert PSV to CSV

Convert a pipe-separated file (PSV) to a CSV file.

Convert CSV to SQLite

Create an SQLite database from the given CSV file.

Convert SQLite to CSV

Export tables from an SQLite database as CSV files.

Convert CSV to GeoJSON

Convert a CSV file to a GeoJSON file.

Convert GeoJSON to CSV

Convert a GeoJSON file to a CSV file.

Merge CSV Files

Merge together two or more CSV files.

Compare Two CSV Files

Visually show the differences between two CSV files.

Diff Two CSV Files

Run the diff algorithm on two CSV files.

Find Data in CSV

Find CSV cells that contain certain data.

Filter CSV Cells

Return data in a CSV file that matches a pattern.

Slice CSV

Extract a slice from a CSV file.

Cut CSV

Cut a fragment from a CSV file.

Rotate CSV Columns

Move CSV columns to the left or right.

Rotate CSV Rows

Move CSV data rows up or down.

Sort CSV Rows

Sort the data in one or more CSV rows.

Shuffle CSV Columns

Randomly change the positions of CSV columns.

Shuffle CSV Rows

Randomly change the order of CSV rows.

Shuffle CSV Values

Randomly change the order of all CSV values.

Rename CSV Columns

Change the name of CSV columns.

Create a Random CSV

Generate a random CSV of any size.

Create an Empty CSV File

Generate a CSV file that contains nothing.

Create a Large CSV File

Generate a large CSV file for testing.

Create a Custom CSV File

Generate a custom CSV file with m rows and n columns.

Delete Empty CSV Columns

Remove CSV columns that are completely empty.

Delete Empty CSV Rows

Remove CSV rows that are completely empty.

Delete Empty CSV Values

Remove all fields in a CSV file that are empty.

Delete Empty CSV Lines

Remove all empty lines in a CSV file.

Remove CSV Separator

Delete the comma separator from CSV files.

Remove Extra CSV Commas

Delete extra commas around CSV values.

Delete CSV Comments

Delete comments (lines starting with # or //) from CSV files.

Delete CSV Header

Delete the column header from a CSV file.

Delete First CSV Line

Delete the first line from a CSV file.

Compress a CSV File

Minify a CSV file and remove unnecessary whitespaces.

Optimize CSV File Size

Reduce the file size of a CSV file.

Change CSV Encoding

Change the character encoding of a CSV file to UTF8 or ISO-8859-1.

Add Extra Spaces in CSV

Add extra spaces between CSV columns.

Convert CSV to a Matrix

Convert a CSV file to an m-by-n matrix.

Convert CSV to an Array of Arrays

Convert a CSV file to an array of arrays of fields.

Convert an Array of Arrays to CSV

Convert an array of arrays of fields to a CSV file.

Convert CSV Columns to a List

Create a list from one or more CSV columns.

Convert CSV Rows to a List

Create a list from one or more CSV rows.

Convert CSV Columns to an Array

Create an array from one or more CSV columns.

Convert CSV Rows to an Array

Create an array from one or more CSV rows.

Find CSV Dimensions

Find the number of rows and columns of a CSV file.

Count CSV Columns

Find the number of columns in a CSV file.

Count CSV Rows

Find the number of rows in a CSV file.

Sum CSV Columns

Find the sum of CSV columns.

Sum CSV Rows

Find the sum of CSV rows.

Average CSV Columns

Find the average value of CSV columns.

Average CSV Rows

Find the average value of CSV rows.

Add Color to CSV

Use different colors for CSV data, quotes, and commas.

Animate a CSV File

Animate CSV data by showing column after column.

Fix a Broken CSV

Automatically fix a broken CSV.

Add Errors to CSV

Introduce random errors to a CSV file for fuzz testing.

Anonymize CSV Data

Hide personal or sensitive information in a CSV file.

Censor CSV Data

Mask data in a CSV file.

Hide a Message in a CSV

Hide a secret message in a CSV.

Encrypt CSV

Encrypt a CSV file and hide information in it.

Decrypt CSV

Decrypt a previously encrypted CSV file and make it readable.

Visualize CSV

Create a visual drawing that shows the CSV structure.

Create a CSV File

Create a new CSV file in the browser.

Unleash Zalgo on CSV

Distort a CSV file by infusing it with Zalgo characters.

Purge Zalgo from CSV

Neutralize the chaotic Zalgo and restore CSV integrity.

CSV Viewer

Preview the contents of a CSV file in an interactive editor.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋