Skip to content
Jellykit

CSV Transpose

Swap the rows and columns of a CSV table, so a wide table of months across becomes a tall one, or the other way round.

  • Runs on your device
Loading tool

About CSV Transpose

Some tables arrive the wrong way round for what you want to do with them: dates across the top when your chart wants them down the side, or one record per column when an import expects one per row. This tool turns the table over its diagonal, so the first row becomes the first column, and shows the result as you type.

Quoted cells, line breaks inside cells and the original delimiter are all kept. Rows of uneven length are padded with empty cells so nothing shifts into the wrong column.

How it works

  1. The CSV is read according to RFC 4180, so quoted fields holding commas or line breaks stay whole. The delimiter is detected unless you choose one.
  2. Cell r, c of the input becomes cell c, r of the output. The header row is treated like any other row and becomes the first column.
  3. The table is as wide as its longest row; missing cells in shorter rows come out empty, and the result says how many rows were uneven.

Questions

Is this the same as a pivot table?

No. Transposing only moves cells; it does not group or add anything up. Transposing twice gives back the original table.

Does it change any values?

No. Every cell is kept as written, including leading zeros and spaces. Only quoting can change: cells are quoted only where the delimiter, a quote or a line break requires it.

How large a table can it transpose?

Up to 5 MB of text, which is hundreds of thousands of cells. A very wide result is hard to read in a spreadsheet, so download it rather than scrolling it here.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.