<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Transpose a table: turn rows into columns

Paste cells copied from a spreadsheet or the content of a CSV file. The table is flipped instantly and for free: the first row becomes the first column, and so on.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Transpose a table

Drop a .csv or .tsv file here, or paste the cells below.

Options

How to use it

  1. Copy the cells in Excel, LibreOffice or Google Sheets and paste them into the input box, or drop a CSV file.
  2. The separator is detected automatically; pick another one if the preview looks wrong.
  3. Copy the result and paste it back into your spreadsheet, or download it as a file.

Example

Input

Name	Q1	Q2	Q3
Alice	12	15	9
Bob	8	11	14

Output

Name	Alice	Bob
Q1	12	8
Q2	15	11
Q3	9	14

Good to know

  • Rows with fewer cells than the longest one are padded with empty cells, so the result is always rectangular.
  • Empty lines at the end of the input are ignored; empty lines in the middle become empty columns.
  • Formulas, formatting and merged cells are not kept: only the displayed values are copied by your spreadsheet.

Frequently asked questions

How do I transpose a table in Excel?

In Excel itself: copy the cells, right-click the destination, then Paste Special > Transpose, or type =TRANSPOSE(A1:D3). If that is awkward (merged cells, a huge range, Excel not at hand), paste the cells here, copy the result and paste it back: it comes out as tab-separated cells.

How do I transpose a table in Google Sheets?

Google Sheets has Edit > Paste special > Transposed, and the formula =TRANSPOSE(A1:D3). This page gives the same result without formulas: paste the copied cells, then copy the flipped table back into the sheet.

How do I transpose a table in Word?

Word has no transpose button. Select the table, copy it and paste it here: its cells arrive separated by tabs. Copy the result, paste it into Word, select it and use Insert > Table > Convert Text to Table, separated by tabs.

What if some rows are shorter than others?

Short rows are padded with empty cells so that the result is a true rectangle, and a notice tells you it happened. Empty lines at the end are ignored, but an empty line in the middle becomes an empty column.

Are formulas and formatting kept?

No: your spreadsheet only copies the displayed values, so formulas, colors and merged cells do not follow. To keep formulas, use Paste Special > Transpose inside Excel, which adjusts the references.

Which separators does it understand?

Tabs (cells copied from a spreadsheet), commas, semicolons and pipes are detected automatically. You can force the input separator and choose a different one for the output, for example to turn a comma CSV into tab-separated cells.

← Back to all tools