CSV Transpose

Transpose CSV, TSV or PSV data — swap rows and columns — while preserving every cell, locally in your browser.

  • Runs locally in your browser
  • No upload required

Capabilities

  • Drag and drop
  • Local file intake
  • Download result

Try it

Read locally in your browser; never uploaded.

Paste delimited text or choose a file, then run the tool. Everything happens in your browser.

Supported formats

Input
text/csv, text/plain
Output
text
Files
Local file intake and drag/drop

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

Transposed a 2×3 table into 3×2.

How it works

  • Parsed the delimited text per RFC 4180.
  • Built the transposed matrix, padding short rows with empty cells.
  • Re-serialized with the same delimiter and quote character.
  • Transposing twice returns the original cell matrix.

Methodology

  1. Parse per RFC 4180 with the configured delimiter and quote character.
  2. Build the transposed matrix: cell (r, c) moves to (c, r); short rows are padded with empty cells.
  3. Serialize the result with the same delimiter, quoting only when a cell needs it.

Usage

  1. Paste delimited text or choose a local file.
  2. Set the delimiter (or auto-detect) and whether the first row is a header.
  3. Run the transpose and copy or download the result.

Examples

These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.

Transpose a 2×3 table

jsonSelect to copy
{
  "text": "a,b,c\n1,2,3",
  "delimiterMode": "comma",
  "delimiter": ",",
  "quote": "\"",
  "firstRowHeader": false
}

Limitations

A true transpose

Every cell moves from (row, column) to (column, row). Transposing a transposed table returns the original matrix, which the property suite asserts.

Frequently asked questions

Does the header move too?
Yes. When the first row is a header it becomes the first column; turn the header option off to treat every row as data.
Is my data uploaded?
No. The transpose runs locally in your browser.

Sources

  1. RFC 4180 — Common Format and MIME Type for Comma-Separated Values (CSV) Files — IETF