onlinecsvtools logo

Csv transposer

World's simplest csv tool

Free online CSV transposer. Just load your CSV, and it will automatically get transposed. There are no ads, popups, or nonsense, just an awesome CSV transposer. Load a CSV – transpose a CSV. Created by programmers from team Browserling.
we're on twitter! tweet tweet
Love what we do? You can follow us on Twitter for updates!
fullscreen fullscreen_exit
Csv transposer tool What is a csv transposer?
This browser utility transposes Comma Separated Values (CSV). It treats the CSV as a matrix of data and flips all elements across the main diagonal. It outputs the same CSV as the input but now all the rows are columns and all the columns are rows.
Csv transposer examples Click to use
Transpose a 2x3 CSV
This example transposes a CSV with two rows and three columns. To do it, it splits the input data by the comma character, creates a 2 by 3 matrix, and exchanges elements so that columns become rows and rows become columns.
foo,bar,baz val1,val2,val3
foo,val1 bar,val2 baz,val3
Long CSV
In this example, we flip a long single-column CSV with a list of my favorite fruit and make it a lengthy single-row CSV.
Tasty Fruit 🍑 peaches 🍒 cherries 🥝 kiwis 🍓 strawberries 🍎 apples 🍐 pears 🥭 mangos 🍍 pineapples 🍌 bananas 🍊 tangerines 🍉 watermelons 🍇 grapes
Tasty Fruit,🍑 peaches,🍒 cherries,🥝 kiwi,🍓 sstrawberries,🍎 apples,🍐 pears,🥭 mangos,🍍 pineapples,🍌 bananas,🍊 tangerines,🍉 watermelons,🍇 grapes
Pro tips Master online csv tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinecsvtools.com/transpose-csv?input=foo%2Cbar%2Cbaz%0Aval1%2Cval2%2Cval3
All csv tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly convert a CSV file to a JSON data structure.
Quickly convert a JSON data structure to a CSV file.
Quickly convert a CSV file to an XML file.
Quickly convert an XML file to a CSV file.
Quickly convert a CSV file to a YAML file.
Quickly convert a YAML file to a CSV file.
Quickly convert a CSV file to a TSV file.
Quickly convert a TSV file to a CSV file.
Quickly convert a CSV file to evenly aligned text columns.
Quickly convert text columns to a CSV file.
Quickly encode CSV to base64.
Quickly decode base64 to CSV.
Quickly convert CSV to URL-encoding.
Quickly decode CSV from URL-encoding.
Quickly change the CSV column delimiter to a new symbol.
Quickly prepend columns at the beginning of a CSV file.
Quickly append one or more new columns at the end of a CSV file.
Quickly insert one or more new columns anywhere in a CSV file.
Quickly export one or more columns from a CSV file.
Quickly replace one or more columns in a CSV file.
Quickly delete one or more columns from a CSV file.
Quickly swap two columns in a CSV file.
Quickly exchange columns with rows in a CSV file.
Quickly exchange rows with columns in a CSV file.
Quickly transpose a CSV file.
Quickly truncate columns in a CSV file.
Quickly left-trim and right-trim column values in a CSV file.
Coming soon These csv tools are on the way
Convert CSV to HTML
Convert CSV to a HTML table.
Convert CSV to an ASCII Table
Draw an ASCII table from CSV data.
Convert CSV to PDF
Convert CSV to a PDF document.
Convert CSV to an Image
Draw CSV file as table and output a PNG, JPG or GIF picture.
Convert CSV to Excel
Convert CSV to an Excel spreadsheet.
Preview CSV in the Browser
Show the contents of CSV in your browser.
Convert CSV to LaTeX
Convert CSV to a LaTeX table.
Convert CSV to SQL
Generate SQL queries from a CSV file.
Merge CSV Files
Merge together two CSV files.
Quote all CSV Fields
Quote absolutely all CSV fields.
Change CSV Quote Character
Change the character CSV fields are wrapped in.
Delete Empty CSV Columns
Delete columns that are completely empty.
Delete Empty CSV Rows
Delete rows that are completely empty.
Minify CSV
Compress a CSV file. Remove unnecessary spaces.
Compare Two CSV Files
Diff CSV files and show differences visually.
Convert CSV Columns to an Array
Convert CSV columns to a flat array or a list.