Free · No signup · Runs in your browser

Unpivot CSV:Wide to Long

Turn columns into rows. Pick the identifier columns to keep, and every other column becomes a name/value pair — the tidy shape pivot tables, charts, and BI tools expect.

01 · How it works

Three steps, then done.

Unpivoting (also called melting) collapses many value columns into two: one holding the original column name, one holding its cell value. Here is how to do it in three steps.

1

Load your CSV

Drop in a wide CSV — one where each measurement or period lives in its own column (e.g. Jan, Feb, Mar). Everything is parsed locally in your browser.

2

Choose identifier columns

Tick the columns that identify each row and should be repeated on every output line, such as Region or Product. Leave the rest to be melted.

3

Export long-format CSV

Each non-identifier column becomes a row with a name field and a value field. Rename those two headers if you like, then download the tidy result.

02 · Why ours

Why unpivot a CSVlong format

Wide spreadsheets are easy to read but hard to analyze. Long, tidy data is what charting libraries, pivot tables, and databases actually want.

  • 01

    Tidy data for analysis

    Most plotting and BI tools assume one observation per row. Melting your month or metric columns into a single value column unlocks grouping, filtering, and aggregation.

  • 02

    Re-pivot anywhere

    Once data is long, any pivot table can reshape it back the way you want. Long format is the neutral interchange shape between tools.

  • 03

    Cleaner joins and unions

    Stacking period or category columns into rows makes it trivial to union files from different months or to join against a lookup table on the name column.

  • 04

    Fully private

    The reshape runs entirely in your browser. Your CSV is never uploaded, so even sensitive financial or customer data stays on your machine.

"Wide is for reading; long is for analysis. Unpivot once and every downstream tool gets easier."
CSV to Dashboard
03 · FAQ

unpivot questions.

What is unpivoting (melting) a CSV?
Unpivoting transforms a wide table into a long one. Columns that hold values across different categories or time periods are collapsed into two columns: one for the original column name and one for its value. Each non-identifier column in a row produces its own output row.
Keep the columns that describe what each row is — things like Region, Product, or Date. Those values are repeated on every melted row. Every column you do not mark as an identifier is treated as a value column and melted into name/value pairs.
Yes. By default the new columns are named 'variable' and 'value', but you can set any headers you like — for example 'month' and 'sales' — using the two text inputs before exporting.
No. csvtodashboard.com is 100% client-side. Your CSV is parsed and reshaped in your browser using JavaScript, and nothing is ever sent to a server.
Use a pivot operation: any pivot table or the spreadsheet of your choice can spread the name column back into separate columns. Long format is the intermediate shape that makes re-pivoting easy.