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

Your files and text stay in your browser while you use this tool, and ads or anonymous visit statistics do not receive them. Only your favorites and recent tools are saved on your device. Privacy policy

Want proof? Check it with your browser’s Network tab: How to check that a tool does not upload your files

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