CSV Transpose
Transpose comma-, semicolon-, tab-, or pipe-delimited data by swapping its rows and columns. Quoted fields, embedded delimiters, escaped quotes, and line breaks are preserved. Ragged rows are padded with empty cells. Processing stays on your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Rows become columns
Paste delimited text and the tool returns it rotated: the first row turns into the first column and so on. Quoted fields may hold the delimiter, doubled quotes and line breaks, and every output value is re-quoted when it needs to be. The download is named transposed.csv.
Reshaping a wide export
It is handy when a spreadsheet export comes out landscape with months across the top and you need a tall table instead. Paste the rows, transpose, and the headers land down the left edge in the order they appeared.
Choosing or detecting the delimiter
The delimiter box offers comma, semicolon, tab and pipe, or auto-detect. Auto examines the first record only and picks whichever of the four appears most often outside quotes, breaking ties in favour of the comma.
Ragged rows and broken quotes
Rows shorter than the widest one are padded with empty cells so the grid stays rectangular, and a trailing newline does not create a phantom row. A field whose opening quote is never closed stops the run with an error instead of guessing.
Content stays on the device
Parsing, transposing and quoting all run locally in the page. The pasted data is not sent anywhere, and the tool works with the network switched off.
Questions
How are quoted fields handled?
Fields wrapped in double quotes can contain delimiters, quotes escaped as doubled quotes, and line breaks. Output fields are quoted as needed.
What happens when rows have different lengths?
Short rows are padded with empty fields to the widest row before transposing.
How does auto-detection work?
The first record is checked for comma, semicolon, tab, and pipe separators. The delimiter appearing most often is selected; ties favor comma.
Related tools
See categoryCSV to JSON
Parse CSV (RFC 4180) into a JSON array, with delimiter sniffing and type inference.
JSON to CSV
Turn a JSON array of objects into CSV, with delimiter, header, and flatten options.
.env <-> JSON
Parse a .env file into JSON, or turn a JSON object into .env text. Runs entirely on your device.
ASCII Table Generator
Turn CSV (or tab-separated) rows into a bordered ASCII table for docs, emails and code comments.