CSV Pivot Table
Turn a CSV into a pivot table: group by one or two columns, aggregate with sum, count, average, min, max or median, with totals and CSV or Markdown export.
Loading tool controlsβ¦
Verify it yourself: press F12, open the Network tab, and use this tool β your files are never uploaded.
CSV Pivot Table at a glance
- Price
- Free
- Account
- Not required
- File uploads
- None β your files are never uploaded
- Category
- File Conversion Tools
Who uses File Conversion Tools?
Anyone converting files between formats β images, data, encodings and colour values.
How to Use CSV Pivot Table
Follow these simple steps to get instant results in your browser.
Paste Your CSV
Paste a CSV with a header row β or use the sample, which includes a quoted field with a comma.
Pick Grouping and Aggregate
Choose the row column, an optional column column, the value column and the aggregate.
Read the Table and Export
Check the pivot with its totals, then export it as CSV or a Markdown table.
What is CSV Pivot Table & How Does It Work?
CSV Pivot Table turns a flat CSV into a summary table. Pick a row column, an optional column column, a value column and an aggregate β sum, count, average, min, max, median or distinct count β and the tool groups every row by those keys, aggregates the values, and shows row totals, column totals and a grand total. The result exports as CSV for a spreadsheet or as a Markdown table for docs and chat.
The parser is quote-aware per RFC 4180: a quoted field may contain commas, doubled quotes and line breaks, so a product called "Widget, Deluxe" stays one value instead of splitting into two columns. Non-numeric values are ignored by the numeric aggregates and counted by count and distinct, so messy real-world CSVs summarise instead of erroring.
The sample proves the engine with a hand-checkable answer: North Γ Widget sums to 1,200 + 400 = 1,600, and the grand total of Sales is 11,700.
Key Features & Capabilities
Real GROUP BY Engine
Group by one or two columns with seven aggregates and full totals.
Quote-Aware RFC 4180 Parsing
Quoted commas, doubled quotes and line breaks inside fields survive.
Row, Column and Grand Totals
Every pivot shows all three totals, not just the cells.
CSV and Markdown Export
Download the pivot as CSV or copy it as a Markdown table.
Honest Non-Numeric Handling
Non-numeric values are ignored by numeric aggregates and counted by count/distinct.
Pro Tips
- β’Bookmark this tool for instant one-click access anytime.
- β’Drag and drop files directly onto the input surface for fastest handling.
- β’All processing happens in your browser session for maximum speed and data safety.
π― Common Use Cases
CSV Pivot Table - Aggregation
Each cell groups the rows that share its row key and column key, then applies the chosen aggregate to the value column. Sum adds the numeric values; count counts non-empty values; distinct counts unique non-empty values; min and max take the extremes; average divides the sum by the count of numeric values; median takes the middle sorted value.
Worked Example
- 1Sample: North Γ Widget, sum of Sales
- 2Rows: North, Widget, 1200 and North, Widget, 400
- 3Sum = 1,200 + 400 = 1,600; grand total of Sales across all 10 rows = 11,700
Sources & Further Reading
- RFC 4180: Common Format for CSV Files β IETF
- Comma-Separated Values β Wikipedia
Frequently Asked Questions about CSV Pivot Table
Frequently asked questions
More File Conversion Tools
Complementary utilities for your workflow
CSV Pivot Table
GROUP BY a CSV into a pivot table with totals.