HomeCSV ToolsPivot Table

Pivot CSV Data — Reshape Long to Wide Format

Reshape long-format CSV data into a wide pivot table. Turn category values into column headers.

Pro feature

Upgrade to Pro to use the Pivot Table tool and process files up to 50 MB.

See Pro plans

What this tool does

Long-format data (one row per observation) is great for databases but awkward for reports. Tabular's pivot tool reshapes it: pick the row key column, the column whose values will become headers, and the column that holds the values to fill in. The result is a wide-format table — the same structure you'd create with a pivot table in Excel or Google Sheets, without leaving your browser.

Problems it solves

  • Reshaping monthly sales data from one row per month to one row per product
  • Converting survey responses from long to wide for analysis
  • Turning database export rows into a crosstab report
  • Preparing data for charting tools that expect wide format
  • Aggregating time-series data by category into a matrix

Example

Long-format sales data pivoted to one row per person with months as columns.

Before

NameMonthSales
AliceJan100
AliceFeb200
BobJan150
BobFeb120

After

NameJanFeb
Alice100200
Bob150120

Frequently asked questions

What happens when there are duplicate index + pivot combinations?

The first value encountered wins. Tabular doesn't aggregate (sum, average, etc.) — it uses the first matching value for each cell.

What is the difference between the row key, pivot, and value columns?

Row key: the column that identifies each output row (e.g. 'Name'). Pivot: the column whose distinct values become new column headers (e.g. 'Month'). Value: the column whose data fills the cells (e.g. 'Sales').

Is this a Pro feature?

Yes. Pivot Table is available on Pro and Business plans.

Can I unpivot (melt) wide data back to long format?

Not yet — unpivot (melt) is planned as a future feature.