CSV ↔ JSON Converter

Move data between spreadsheets and code. The first row can be used as keys, numbers and booleans can be typed automatically, and JSON arrays of objects turn back into CSV with a header row.

Open a CSV or JSON file

Runs entirely in your browser. Your input and files are not uploaded to any server.

How to use

  1. Choose the direction: CSV → JSON or JSON → CSV.
  2. Paste data or open a file.
  3. Set the options, press Convert, then copy or download.

Examples

CSV

name,age\nSara,31 → [{"name":"Sara","age":31}]

JSON

[{"a":1,"b":"x"}] → a,b\n1,x

Privacy

Runs entirely in your browser. Your input and files are not uploaded to any server. See the privacy policy for what is stored in your browser (favorites and history only). Privacy policy

Check it yourself: open your browser’s developer tools, select the Network tab and use the tool. Your file never appears in an upload request. Once this page is saved for offline use, you can also disconnect from the internet and keep working. Ads and anonymous visit statistics, when enabled, make their own requests, but they never receive your files or text.

Frequently asked questions

What happens to nested JSON objects?

Nested objects are flattened with dot notation (address.city). Arrays inside values are written as JSON text in the cell.

Why are some numbers kept as text?

Values with leading zeros like 00123 or very long numbers are kept as text so that IDs and phone numbers are not damaged.

CSV CleanerClean CSV files in your browser: trim cells, remove empty and duplicate rows, change the delimiter and preview the table before downloading.
JSON MinifierMinify JSON by removing whitespace and line breaks, validate it at the same time and see how many bytes you saved.
File to Data URIConvert an image, font or any small file into a Base64 data URI, with ready-to-paste CSS and HTML snippets and a size warning when inlining is a bad idea.
SVG Preview & OptimizerPreview SVG files safely and shrink them by removing comments, editor metadata and whitespace, with optional number rounding.
Color Picker & ConverterPick a colour, convert between HEX, RGB and HSL, sample colours from an image or your screen, and check contrast against white and black text.

Search tools