CSV transpose
Transpose a CSV — swap its rows and columns. Runs entirely in your browser, no upload.
About this tool
CSV transpose flips a CSV on its diagonal: rows become columns and columns become rows. The first column of the output is what used to be the header row, so:
name,age name,Ada,Bo
Ada,36 -> age,36,40
Bo,40
Ragged rows are padded with empty cells so the result is rectangular. Transposing
twice gives you the original back. Works with , / tab / ; / | delimiters.
Privacy
Everything runs in your browser via WebAssembly — your CSV is never uploaded. Also available from the gizza CLI and in chat.
Common uses
- Turn a wide table into a tall one (or vice versa) for a different tool.
- Put each record in a column for side-by-side comparison.
FAQ
What happens when rows have different lengths?
The output is padded to the widest row: any missing cell becomes an empty cell, so a 3-column header over a 2-cell data row transposes to three rows where the third has a blank value. The result is always rectangular.
Does my CSV need a header row?
No. The transpose is purely positional — whatever is in row 1 simply becomes column 1 of the output. If you do have a header, it ends up as the first column, which is usually exactly what you want for side-by-side record comparison. Transposing the result again returns the original table.
Which delimiters can I use, and are quoted cells safe?
Comma is the default; tab, semicolon, and pipe are accepted by name, and
any other single character works too. The output is written with the same
delimiter. Cells are parsed as real CSV, so quoted values containing commas or
newlines survive the transpose and are re-quoted where needed.
Developer & Automation Access
Run it from the terminal
Same engine as this page, headless — via the gizza CLI:
gizza tool csv-transpose "name,age
Ada,36
Bo,40"New to the CLI? Get gizza →
Open it by URL
Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:
https://gizza.ai/tools/csv-transpose/?data=name%2Cage%0AAda%2C36%0ABo%2C40&delimiter=%2CMachine-readable descriptor: tool.json — title + parameters JSON Schema for agents.
