Swelıty
Tools for everyone

Free Online CSV ↔ JSON Converter

Convert CSV to JSON or JSON to CSV with delimiter detection, type conversion and nested-object flattening.

Options

CSV input

Result

2 rows, 4 columns · delimiter: ,

How to use

  1. Choose CSV → JSON or JSON → CSV, or drop a file anywhere on the page.

  2. Check the options. The defaults suit most files.

  3. Read the result and the row and column counts below it.

  4. Copy the result or download it as a .json or .csv file.

Why use this tool

  • Handles messy CSV

    Quoted commas, escaped quotes, line breaks inside cells, a byte-order mark and Windows or Unix line endings all work.

  • Automatic delimiter detection

    Comma, semicolon, tab or pipe. Choose one yourself if detection guesses wrong.

  • Nested JSON to columns

    Objects become columns such as address.city. Arrays are kept as JSON text in the cell.

  • Safe for spreadsheets

    Cells that start with = + - or @ get a leading quote, so Excel and Sheets do not run them as formulas.

About this tool

The CSV ↔ JSON Converter turns spreadsheet data into JSON and JSON back into CSV. It detects the delimiter, handles quoted fields and line breaks inside cells, and can convert numbers, true/false and empty cells to real JSON types. For JSON to CSV it can flatten nested objects into columns and protect against spreadsheet formula injection. Open a file or paste text.

Frequently asked questions

With conversion on, 42 becomes a number, true and false become booleans, and empty cells become null. Turn conversion off to keep every value as text.

An array of objects works best, and a single object is treated as one row. Different objects can have different keys: the columns are the union of all keys. An array of plain values becomes a single value column.

Blank header cells are named column_N and duplicates get a numeric suffix, so no data is lost.

Files up to 20 MB are accepted.