Conversion Tools100% Client-Side

Prepend a Column to CSV

Prepend a column when a CSV import expects a new value before all its existing fields. The converter creates a cell at the start of each row and shifts the original fields one place to the right. Enter one value to repeat it throughout the table, including the first row. A blank field creates an empty leading cell, which can be useful when the destination will fill the new column later.

Configuration Options
Input
17 chars•2 lines
Output

How to Use the Prepend CSV Column Online

  1. 1Paste the CSV document. If the first row contains headings, remember that the new leading cell applies to the heading row as well.
  2. 2Enter a single value under Column Values to repeat it, or clear the setting if you want an empty cell at the start of each row.
  3. 3Inspect the original first field in the output. It should now appear in the second position, after the value you added.
  4. 4Copy the CSV and adjust the first row in the destination if the repeat value needs a distinct column heading.

Input & Output Examples

Set Column Values to batch-a to add that value at the beginning of each line.

Input Sample
name,qty
Tea,4
Coffee,9
Expected Output
batch-a,name,qty
batch-a,Tea,4
batch-a,Coffee,9

Clear Column Values to give the heading and data rows an empty first cell.

Input Sample
item,count
Brush,3
Expected Output
,item,count
,Brush,3

Practical Developer Workflows

  • Put a shared batch identifier in front of exported rows before combining records from several sources.
  • Create a leading placeholder column for a spreadsheet review that will assign numbers later.
  • Move existing fields right by one position to fit a destination with a reserved first column.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Their order relative to one another is preserved. The new field becomes the first column, and each original column moves one position right. Position-based import settings may therefore need to be updated.

Explore Other Tools

12 suggested tools

View all tools