Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Insert CSV Columns

Paste CSV data or upload a file, then insert a new column at any position with a custom name and default value

Your files never leave your browser
Column name:
Default value:
Position:
CSV Input0 chars, 0 lines
Drag & drop a CSV file here, or browse
Accepts .csv, .tsv, .txt files
CSV Output0 chars, 0 lines
Ready·

Drop a new column into any spot in your CSV — pick the position, name it, set a default value, and hit Insert. No dragging cells around in a spreadsheet, no formulas breaking because you shifted something one column off. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste or Upload CSV
→
Set Column Name & Position
→
Download Updated CSV

The parser reads your CSV row by row, respecting quoted fields and escaped characters. It splices the new column into the exact position you picked — header row gets the column name, every other row gets your default value. Output stays in valid CSV format with proper quoting.

Examples

Adding a Status Column to a Task List

Your project tracker CSV needs a "Status" field. Insert it as the last column with "Pending" as the default.

INPUT
task,assignee,due Homepage redesign,Alice,2026-04-15 API migration,Bob,2026-04-20 Bug fixes,Carol,2026-04-10
OUTPUT
task,assignee,due,status Homepage redesign,Alice,2026-04-15,Pending API migration,Bob,2026-04-20,Pending Bug fixes,Carol,2026-04-10,Pending

Inserting a Country Code Before Email

A contact list export is missing the country code column. You need it between "phone" and "email" — position 3.

INPUT
name,phone,email John Smith,555-0101,[email protected] Maria Lopez,555-0202,[email protected]
OUTPUT
name,phone,country,email John Smith,555-0101,US,[email protected] Maria Lopez,555-0202,US,[email protected]

Adding an ID Column as the First Field

You exported product data but forgot to include an ID column. Insert it at position 1 so it becomes the first field. You'll fill in actual IDs later — a blank default works fine for now.

INPUT
product,price,stock Widget A,19.99,150 Widget B,24.99,80 Gadget C,9.99,300 Gadget D,14.50,0
OUTPUT
id,product,price,stock ,Widget A,19.99,150 ,Widget B,24.99,80 ,Gadget C,9.99,300 ,Gadget D,14.50,0

Who Uses This

👨‍💻 Developers

Adding missing fields to CSV exports before importing into a database or API.

📊 Data Analysts

Inserting calculated or placeholder columns before loading data into reporting tools.

📋 Project Managers

Adding status, priority, or category columns to exported task lists from Jira or Trello.

🛒 E-commerce Teams

Inserting SKU, warehouse, or tax columns into product feeds before bulk upload.

Common Mistakes

Forgetting to check "Header row"

If your CSV has headers but you leave this unchecked, the default value gets inserted into the header row too. You end up with "Pending" where the column name should be. Toggle it on before inserting.

Wrong position — off by one

Position 3 means "before column 3," not after it. If you want the new column between columns 2 and 3, pick position 3. Read the label in the dropdown — it shows "before [column name]" to help.

Pasting tab-separated data instead of CSV

Copying from Excel or Google Sheets often gives you tab-separated values, not commas. The tool expects CSV format. Convert tabs to commas first, or use a TSV-to-CSV converter before pasting.

Technical Details

Frequently Asked Questions

Can I insert a column with different values per row?

Not directly — the tool sets one default value for all rows. If you need different values, insert the column with a placeholder like "TBD", then open the result in a spreadsheet and fill in the individual values. It's still faster than manually restructuring the whole file.

How do I add multiple columns at once?

Run the tool once per column. Insert the first one, copy the output back into the input field, then insert the next. Each round takes about five seconds, so even adding four or five columns is pretty quick.

Does inserting a column change my existing data?

No. All your original columns and values stay exactly where they are. The new column gets spliced in at the position you chose, and everything else shifts over by one. Nothing is overwritten or deleted.

Is my data safe when I use this tool?

Yes. The CSV is processed entirely in your browser using JavaScript. Nothing gets sent to a server. Close the tab and the data is gone — there's no storage, no cookies, no tracking of your file contents.

What CSV delimiter does this tool support?

Commas only. If your file uses semicolons, tabs, or pipes as delimiters, you'll need to convert it to standard comma-separated format first. Most spreadsheet apps can re-export as comma-delimited CSV.

Share: