AnyToolCenter

Free CSV to JSON Converter

Convert between CSV and JSON instantly, in either direction.

How to use this tool

Pick a direction using the tabs above. For “CSV to JSON”, paste your CSV data and toggle whether the first row is a header, deciding whether the result is an array of objects or an array of arrays.

For “JSON to CSV”, paste a JSON array, either objects with matching keys or arrays of values, and it converts instantly to CSV text. Use the copy button next to either result to copy it to your clipboard.

This is useful for turning an exported spreadsheet into JSON for use in code, or converting an API response or JSON dataset back into a CSV file for spreadsheets or data analysis tools.

FAQ

Can I convert in both directions?
Yes. Use the 'CSV to JSON' tab to convert CSV data into JSON, or the 'JSON to CSV' tab to convert a JSON array back into CSV.
Does it detect data types automatically?
Yes. When converting CSV to JSON, numbers and the words 'true'/'false' are converted to actual numbers and booleans rather than staying as text.
What JSON format does 'JSON to CSV' expect?
Either an array of objects (each object becomes a row, keys become columns) or an array of arrays (each inner array becomes a row directly).
Is my data uploaded anywhere?
No. All conversion happens locally in your browser using JavaScript. Nothing you paste is uploaded or stored.