Skip to content

Browser tool

Transpose a CSV table

Turn each input column into an output row. Keep the first row, empty cells and repeated labels in their original positions along the new axes.

Transpose the grid

Every input record becomes an output column, including the first record and any headings. Choose the delimiter used in your file.

Use a rectangular grid of up to 64 records by 64 columns and up to 100,000 UTF-16 code units. Open a UTF-8 file or paste the text.

Input 1

Enable JavaScript to use this tool in this tab.

Open a file, paste text or try the sample.

Read the whole grid

Open a UTF-8 file or paste its text and choose the delimiter. Every record must have the same number of fields. The first record participates in the transpose, including any headings. No headings are generated.

Follow one cell

Input record 2, column 3 becomes output record 3, column 2. A quoted note with a line break still occupies one cell. Empty text stays empty, and 007 keeps its leading zeros.

Check the shape

A grid of four records and three columns produces three records and four columns. Each axis can contain up to 64 positions. This keeps both the input and the output within the same column limit.

Choose an output

The CSV uses commas and protects formula-like values with a leading apostrophe. The JSON includes the exact transposed strings, input dimensions and positions changed in the CSV. All processing happens in this browser.

Work through an example