Transpose a CSV table

Swap all rows and columns in a rectangular CSV, including headers, and download the transposed table.

Paste data or open a UTF-8 file up to 1 MiB. Processing takes place on this device.

Worked example

Input

Metric,Jan,Feb
Orders,12,18

Result

Metric,Orders
Jan,12
Feb,18

How should I handle missing values?

Each input row must have the same number of fields. Include a comma for an empty last cell. A quoted comma inside a description belongs to one field and does not create an extra column.