Import CSV data from a file or string and export it as an array of objects in the format you
Convert CSV data to JSON format with automatic type detection.
Come utilizzare CSV to JSON
Attach or load CSV
Attach the CSV text to the input area or drag and drop a .csv or .txt file into the drop zone, or select it via the "Choose File" button.
Configure delimiter and header
Choose the correct delimiter (comma, period and comma, tab or pipe) and indicate if the first row contains column names.
Convert and verify reported types
Premi "Convert to CSV": the tool automatically detects the dominant column type (number, boolean, null, string) and shows the resulting JSON with its statistics.
Copy or download JSON
Use the buttons "Copy JSON" or "Download JSON" to export the result, ready to be used in APIs, scripts or tests.
Suggerimenti
- Use "Load Example" to see a mixed case immediately with numbers, booleans, nulls and comma-separated strings.
- If numbers are not recognized, check that the selected delimiter matches your actual file's delimiter.
- For CSV with decimal separator as comma, convert numbers to point format first to avoid being interpreted as strings.
Domande frequenti
How are data types detected from CSV columns?
The tool analyzes all values in each column and assigns the dominant type between number, boolean, null (empty cells or "n/a"), and string, based on the frequency of compatible values in that column.
What CSV delimiters are supported?
We support comma (,), semicolon (;), tab (\t), and pipe (|). The parser correctly handles fields within double quotes containing the delimiter or escaped double quotes.
Are my data being sent to a server?
No. The conversion occurs entirely in the browser using a pure TypeScript CSV parser with no external dependencies and no data uploads to any servers.
What happens if a CSV file does not have a header row?
Disabling the "First row as header" option, the tool automatically generates generic column names (col1, col2, ...) and treats all rows as data.
What is the maximum file size of CSV files I can convert?
There is no hard-coded limit, but since the processing happens on the client side, performance depends on the browser and available memory. For very large files (dozens of MB), consider a command-line tool.