Free web tool

CSV transpose

Transpose CSV rows and columns.

Input & settings

How to use it

Transpose a CSV when rows need to become columns and columns need to become rows. Think of it as rotating the whole table: the first row is not treated specially, so headers move along with everything else.

  1. Paste the CSV.
  2. Run the transpose and check how the first row/column moved.
  3. Confirm the new first row makes sense for the system or document you will use next.

Headers are not preserved as a special layer

If the first row is name,Ada,Grace, those cells become part of the first output column after transposition. The tool transposes the entire matrix; it does not keep a header row fixed while rotating only the data.

Ragged rows are padded with blanks

If some CSV rows have fewer cells than others, the widest row defines the matrix width. Missing cells are filled with blanks. A surprising number of blanks in the output can therefore reveal inconsistent row lengths in the source CSV.

Transpose is not the same as pivot/unpivot

This operation only swaps coordinates. It does not group by keys, aggregate values, or turn category values into generated columns. For those reshaping jobs, a pivot or other structured transformation is a better fit.

A wide table can become a tall one

A 5-row × 100-column matrix becomes 100 rows × 5 columns. That can make a human-readable table easier to scan, but it can also change which side of an import limit you hit, so check the resulting shape.

A practical example

Use it for small exports where attributes were arranged vertically and records horizontally. After transposing, verify that the new first row has the header meaning you actually need before saving.