Loona Automation logoLoona Developer Tools
Home › Developer Tools › CSV Transpose

CSV Transpose - Swap Rows and Columns

In short: the CSV Transpose flips your data so rows become columns and columns become rows - the first column becomes the header row of the result - with quoted fields handled correctly throughout.

Sometimes the spreadsheet grew in the wrong direction: attributes down the side instead of across the top. Transpose fixes the orientation in one click.

Private by design: everything in this tool happens 100% in your browser with JavaScript. Your input is never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How to use the CSV Transpose

  1. Paste your CSV.
  2. Click Transpose.
  3. Copy or download the flipped CSV.
  4. Transpose again to flip back - transposing twice returns the original.

How it works

Transposing is a matrix flip on parsed rows, not text lines, so a quoted field containing a comma or a line break moves as one whole cell. Short rows are padded with empty cells so the result is rectangular. Because the flip is exact, applying it twice returns the original data - a property the tool's tests verify on real fixtures.

Frequently Asked Questions

Is this tool free?

Yes - completely free, no sign-up.

What happens to my header row?

It becomes the first column of the result. There is no special header handling - the whole grid flips, which is the predictable behaviour.

Are ragged rows handled?

Yes - shorter rows are padded with empty cells so every output row has the same length.

Is my data uploaded?

No. Everything runs in your browser.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.