Transpose CSV
Convert CSV rows into columns and columns into rows instantly
Flip rows into columns and columns into rows — paste your CSV, hit Transpose, and grab the result. Uneven rows get padded automatically so the output stays clean. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool parses your CSV into a grid, then builds a new grid where row index and column index are swapped. Cell [2,5] in the original becomes cell [5,2] in the output. If some rows are shorter than others, empty strings fill the gaps so the output stays rectangular. It auto-detects commas, semicolons, and tabs as delimiters.
Examples
Flipping a simple contact list
You exported contacts from a CRM and need each field as its own row for a mail merge template.
name,age,city
Alice,30,New York
Bob,25,London
name,Alice,Bob
age,30,25
city,New York,London
Monthly sales data — pivoting for a chart
Your charting tool expects months as rows, but the export has each month as a column. Quick transpose fixes the orientation without opening Excel.
product,jan,feb,mar
Widgets,120,135,142
Gadgets,89,94,101
Gizmos,200,210,195
product,Widgets,Gadgets,Gizmos
jan,120,89,200
feb,135,94,210
mar,142,101,195
Handling uneven rows from a messy export
Some APIs return CSVs where not every row has the same number of fields. The tool pads shorter rows with empty values so the transpose still works.
a,b,c
1,2
x,y,z
a,1,x
b,2,y
c,,z
Who Uses This
Reshaping API response data before feeding it into a database import or test fixture.
Pivoting wide-format datasets into long-format for tools like R, Python pandas, or Tableau.
Reformatting campaign performance exports so each metric gets its own row for reporting dashboards.
Flipping survey data or lab results into the orientation their professor’s template requires.
Common Mistakes
People expect the first row to stay as a header. It won’t — your header values end up as the first column after transposing. If you need them back on top, you’ll have to move that column manually or transpose a second time (which just gives you the original back).
If you copy from Excel or Google Sheets, your data is tab-delimited, not comma-separated. The tool auto-detects tabs, but check the output delimiter matches what you need. You can always find-and-replace tabs with commas afterward.
Browser-based tools run on your machine’s memory. A 50,000-row CSV with 20 columns creates a million cells to flip. It’ll still work, but give it a moment. For files over 100MB, a command-line tool or Python script is a better fit.
Technical Details
- Processing: 100% client-side — no data leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Delimiter Detection: Auto-detects commas, semicolons, and tabs
- Quoted Fields: Handles double-quoted values with embedded commas and newlines
- Max Size: Limited only by your browser’s available memory
Frequently Asked Questions
What does it mean to transpose a CSV file?
Transposing swaps rows and columns. If your CSV has 10 rows and 4 columns, the transposed version has 4 rows and 10 columns. Each original row becomes a column in the output. It’s the same operation as the TRANSPOSE function in Excel or Google Sheets.
Can I transpose a CSV with different row lengths?
Yes. Rows that are shorter than the longest row get padded with empty values. So if row 1 has 5 fields and row 2 has 3 fields, the transposed output fills in blanks for the missing cells. Nothing breaks — your data stays intact.
Is my CSV data uploaded to a server?
No. The entire operation happens in your browser using JavaScript. Your data never leaves your computer. You can even disconnect from the internet after the page loads and it will still work.
How do I transpose CSV data in Excel?
In Excel, select your data, copy it, right-click a destination cell, and pick “Paste Special” → check “Transpose.” Or use the =TRANSPOSE() formula on a range. Both work, but they’re clunky with large datasets. This online tool is faster when you just need to flip a file and move on.
Does transposing twice give me back the original data?
Yes, exactly. Transposing is its own inverse. Run it once and rows become columns. Run it again and you’re back where you started. It is a handy way to verify nothing got lost — transpose twice and compare with the original.