onlinecsvtools logo

Csv column replacer

World's simplest csv tool

Free online CSV column replacer. Just load your CSV, enter the new columns and column numbers or names to replace, and you'll get those CSV columns replaced. Load CSV, replace columns. There are no ads, popups or nonsense, just an awesome CSV column replacer. Created by developers for developers.
fullscreen fullscreen_exit
Import from file
Save as...
Copy to clipboard
Can't convert.
An error has occured.
Export to Pastebin
Save as...
Copy to clipboard
Replace Column
Enter your CSV to be replaced with
Select Column
Which column to replace?
Selection
Replace all occurences of a column
Csv column replacer tool What is a csv column replacer?
This tool replaces one or more columns in a Column Separated Value (CSV) file with one or more new columns. You can replace columns by their names or column numbers. If you select column to be replaced by name you can also click Replace all option that will replace all columns with that title.
Csv column replacer examples Click to use
Replace one column
This example replaces the first CSV column with new CSV values
foo,bar baz,esr new,bar new,esr
Required options
These options will be used automatically if you select this example.
Enter your CSV to be replaced with
Which column to replace?
Replace repeated columns
More complicated example that replaces all columns that have column title "bar" with a new column.
foo,bar,foo,bar,foo,bar 0x00,0x10,0x20,0x30,0x40,0x50 foo,new,foo,new,foo,new 0x00,0x99,0x20,0x99,0x40,0x99
Required options
These options will be used automatically if you select this example.
Enter your CSV to be replaced with
Which column to replace?
Replace all occurences of a column
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://onlinecsvtools.com/replace-csv-columns?input=foo%2Cbar%0Abaz%2Cesr&replace-column=new%0Anew&replace-which-column=1
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!
Quickly convert a CSV file to a JSON data structure.
Quickly convert a JSON data structure to a CSV file.
Quickly convert a CSV file to an XML file.
Quickly convert an XML file to a CSV file.
Quickly convert a CSV file to a YAML file.
Quickly convert a YAML file to a CSV file.
Quickly convert a CSV file to a TSV file.
Quickly convert a TSV file to a CSV file.
Quickly convert a CSV file to evenly aligned text columns.
Quickly convert text columns to a CSV file.
Quickly encode CSV to base64.
Quickly decode base64 to CSV.
Quickly change the CSV column delimiter to a new symbol.
Quickly prepend columns at the beginning of a CSV file.
Quickly append one or more new columns at the end of a CSV file.
Quickly insert one or more new columns anywhere in a CSV file.
Quickly export one or more columns from a CSV file.
Quickly replace one or more columns in a CSV file.
Quickly delete one or more columns from a CSV file.
Quickly swap two columns in a CSV file.
Quickly exchange columns with rows in a CSV file.
Quickly exchange rows with columns in a CSV file.
Quickly transpose a CSV file.
Coming soon These csv tools are on the way
Convert CSV to HTML
Convert CSV to a HTML table.
Convert CSV to PDF
Convert CSV to a PDF document.
Convert CSV to an Image
Draw CSV file as table and output a PNG, JPG or GIF picture.
Convert CSV to Excel
Convert CSV to an Excel spreadsheet.
Preview CSV in the Browser
Show the contents of CSV in your browser.
Convert CSV to LaTeX
Convert CSV to a LaTeX table.
Convert CSV to SQL
Generate SQL queries from a CSV file.
Merge CSV Files
Merge together two CSV files.
Quote all CSV Fields
Quote absolutely all CSV fields.
Change CSV Quote Character
Change the character CSV fields are wrapped in.
Delete Empty CSV Columns
Delete columns that are completely empty.
Delete Empty CSV Rows
Delete rows that are completely empty.
Minify CSV
Compress a CSV file. Remove unnecessary spaces.
Compare Two CSV Files
Diff CSV files and show differences visually.