Transpose CSV

Invert the rows and columns of your CSV file.

About Transpose CSV

Sometimes the data comes in the wrong orientation: one row per month with metrics as columns when the chart tool needs one column per month, or a wide questionnaire that should be a tall list. Transposing swaps rows and columns, so the first row becomes the first column and vice versa, exactly like Paste Special > Transpose in Excel but without opening a spreadsheet.

Paste the CSV, click Transpose and copy the result. The operation runs in your browser and nothing is sent anywhere.

How to use Transpose CSV step by step

  1. Paste the comma-separated CSV into the left box.
  2. Click "Transpose". The rows become columns in the result box on the right.
  3. Click "Copy" to place the transposed CSV on the clipboard.

Input and output example

Input

month,sales,costs
Jan,100,60
Feb,120,70

Output

month,Jan,Feb
sales,100,120
costs,60,70

Why use our Transpose CSV?

Common use cases

Limits and tips

Frequently asked questions

What does transposing a CSV mean?

Transposing swaps the two axes of a table: the value at row i, column j moves to row j, column i. The first row of the original becomes the first column of the result, so headers along the top become labels down the side.

How is this different from Excel's Transpose?

The result is the same as Paste Special > Transpose in Excel or Google Sheets, but no spreadsheet is needed and the values are not reinterpreted: 08001 stays 08001 and 1/2 stays 1/2, which Excel would convert to a number and a date.

Can I transpose a file with thousands of rows?

Yes, as long as your browser has memory for it. The result will have as many columns as the input had rows, which some spreadsheets cannot open beyond 16,384 columns.

Why are some cells missing after transposing?

The tool assumes every row has the same number of cells as the first one. If a row is longer, its extra values are discarded; if it is shorter, empty cells appear. Make the rows uniform before transposing.

Is the data uploaded?

No. The transposition is computed by JavaScript in your browser tab and the result stays there until you copy it.

Related tools

Other free utilities you may find useful

Available languages