Text

Runs in your browser. No file uploads for processing.

CSV Transpose: Swap Rows and Columns

Swap rows and columns in a CSV or TSV. Check the new shape, then download without uploading the table.

Loading tool...

How to swap CSV rows and columns

  1. Paste or choose a file

    Use UTF-8 and match the input separator. The first row is treated like any other row, so its values become the first output column.

  2. Decide how to handle short rows

    Try the stock example. With padding on, Metric, North and South become row labels. North keeps SKU 001 and stock 0, while South keeps SKU 002 and gets one blank stock cell. With padding off, the tool reports the short record instead of guessing.

  3. Compare the shapes and download

    Check the row and column counts and preview, then save a comma-separated CSV or tab-separated TSV. Nothing in the table is uploaded.

Use cases

  • Rotate a table so metrics run down the first column instead of across the top.
  • Prepare a small report or spreadsheet extract for an application that expects the opposite orientation.

Limits and privacy

  • Use one UTF-8 file, up to 2 MiB, 2,000,000 characters, 1,000 records, and 100 columns. This tool does not open Excel workbooks.
  • The download preserves text including leading zeros, but a spreadsheet may reinterpret those cells. Import as text if that matters. Formula-like cells get a leading apostrophe by default; this is not a guarantee for every spreadsheet.

The tool processes inputs in your browser. Account features and usage analytics are separate.

Frequently asked questions

How do I flip only some columns of a CSV?

Use CSV Column Extractor first to keep or reorder the source columns you want. After transposing that smaller table, each selected column becomes one output row.

What happens to the header row?

It becomes the first output column. Nothing is treated as a special header or removed.

Does padding change explicitly empty cells?

No. Padding adds empty cells at the ends of shorter records only. Explicit empty cells keep their positions and are not counted as padding.

Is transposing the same as pivoting or unpivoting?

No. Transposing swaps all rows and columns by position. Pivoting and unpivoting reorganize values around selected identifiers.

Does this upload my CSV or TSV?

No. The browser reads the file and builds a new local download without modifying the original.

Related tools