What This Tool Does
This tool converts pasted CSV or spreadsheet data into an array. It handles the tab-separated format you get from copying cells directly out of Excel, Google Sheets, or Numbers, as well as standard comma-separated CSV, and correctly parses quoted fields so a value like "New York, NY" stays as one cell instead of splitting on the comma inside it.
How to Convert CSV or Excel Data to an Array
Paste your data into the left panel, the delimiter is auto-detected by default (tab-separated Excel pastes and comma-separated CSV both work without changing anything), and the parsed array appears on the right, updating live. Switch to the Table tab to see the parsed rows and columns instead of raw array syntax.
Choosing an Output Format
Flat outputs every value as a single comma-separated list, useful for a quick copy-paste into code. Associative treats the first row as column headers and outputs each remaining row as an object keyed by those headers. Multidimensional outputs a plain array of arrays, one per row, including the header row if you keep "First row is header" off.
Handling Quoted Fields and Type Coercion
Quoted fields, values wrapped in double or single quotes, are parsed correctly even when they contain the delimiter character or an escaped quote inside them, matching how CSV is meant to work rather than naively splitting on every occurrence of the delimiter. Turn on "Auto-convert types" to have numeric-looking values like 30 or 98.5 converted to actual numbers in the output instead of staying as quoted strings.
Common Uses for a CSV to Array Converter
Turning a quick copy-paste from a spreadsheet into a JavaScript array for a script or test fixture, converting an exported CSV report into an array of objects for a frontend table, and checking that a CSV file with quoted, comma-containing fields parses the way you expect before writing code around it are all common reasons to use this tool. It works equally well as a csv to json array online converter, a place to paste excel to array or excel paste to json, a tsv to array and tab separated to array tool, and a way to convert csv to array online as a flat list, csv to 2d array, or spreadsheet to json array.