CSV Rows to Columns Converter
Transpose CSV data instantly: convert rows to columns and columns to rows. Supports file upload, auto-delimiter detection, and export.
About
Transposing tabular data is a matrix operation where an m × n table becomes n × m. Getting this wrong manually in a spreadsheet with hundreds of rows leads to misaligned data, broken imports, and corrupted database loads. This tool implements a strict RFC 4180-compliant CSV parser that correctly handles quoted fields, embedded delimiters, and escaped double-quotes before performing the transpose. It auto-detects the delimiter (comma, semicolon, tab, or pipe) and pads ragged rows with empty cells to produce a rectangular matrix. The output is re-serialized with proper quoting so it can be directly imported into any system. Note: this tool treats the first row identically to all others. If your first row contains headers, they will become the first column after transposition.
Formulas
The transpose operation maps each element from its original position to a swapped position in the output matrix:
Where A is the input matrix of size m × n (rows × columns), and B is the resulting transposed matrix of size n × m. The indices i and j represent the row and column indices respectively, where 0 ≤ i < m and 0 ≤ j < n.
For ragged input (rows of unequal length), the tool first normalizes to a rectangular matrix by computing the maximum column count n = max(len(rowi)) and padding shorter rows with empty strings.
Reference Data
| Delimiter | Symbol | Common Use | Auto-Detected | RFC Standard |
|---|---|---|---|---|
| Comma | , | Most CSV files (US/UK locale) | Yes | RFC 4180 |
| Semicolon | ; | European locale CSVs (Excel EU) | Yes | No formal RFC |
| Tab | \t | TSV files, database exports | Yes | IANA TSV |
| Pipe | | | Legacy systems, mainframe exports | Yes | No formal RFC |
| Space | Fixed-width approximations | No | None | |
| Colon | : | /etc/passwd, config files | No | None |