Unpivot columns to rows
Turn a table with one column per month or item into a long list of key and value rows, as Excel Power Query does, from pasted cells or a CSV file.
- Free
- No sign-up
- Works on any device
About Unpivot columns to rows
A wide table with one column per month, year or product is easy to read but hard to filter, chart or load into a database. Unpivoting turns it into a long list with an id, a name and a value: a row for Tea with columns Jan, Feb and Mar becomes three rows, each holding Tea, the month and the amount. You tick the columns to keep, the rest become rows, and you name the two new columns. Empty values can be skipped. It is the Unpivot Other Columns step of Excel Power Query, for pasted cells and CSV files.
How to use Unpivot columns to rows
- Paste the wide table or open a CSV or XLSX file with the column names in the first row.
- Tick the columns to keep, such as the product name; all other columns become rows.
- Name the two new columns, then copy the long table or download it as CSV or XLSX.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
How many rows will the result have?
One row for every kept row times every unpivoted column, minus the empty values if you skip them. The result line shows the exact number.
Can I keep more than one column as an identifier?
Yes, tick as many columns as you like. They are repeated on every new row in front of the name and value columns.
How do I turn the long list back into a wide table?
Use a pivot table in Excel or Google Sheets on the result, with the name column as columns and the value column as values.
Is Unpivot columns to rows free?
Yes. Unpivot columns to rows on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.