FileSprout.Simple file tools
ToolsGuidesAbout
English ▾
繁體中文EnglishEspañol
Use tools ↘
← All guides

Data formats · A quick guide

How to convert CSV and JSON

About 3 min read · FileSprout practical guide

CSV is a plain-text way to represent rows and columns. JSON is commonly used to exchange structured data between websites and software. They can be converted, but the data shape matters.

CSV: the first row usually names the columns

CSV stores values separated by commas. In this example, the first row contains the column names and each later row is one record:

name,city
Ada,"Hong Kong"
Kai,Taipei

If a value contains a comma, line break or double quote, standard CSV wraps that field in double quotes and writes an inner quote twice. Splitting every line on commas without respecting quoted fields can shift data into the wrong columns.

JSON: an array of objects can map to a table

The same rows can be represented as a JSON array:

[
  {"name":"Ada","city":"Hong Kong"},
  {"name":"Kai","city":"Taipei"}
]

Each object's property becomes a CSV column. If a row is missing a property, FileSprout leaves that cell blank. Nested arrays or objects are written as JSON text inside that cell; they are not automatically expanded into new columns.

Check these details before converting

  • Does the first CSV row contain clear column names?
  • Do rows have the expected number of fields?
  • Is the JSON an array of objects, rather than a single object or nested list?
  • Should dates, phone numbers or postal codes remain text? Keeping them as text can preserve leading zeroes.
FileSprout converts CSV and JSON in your browser. CSV → JSON uses the first row for column names; JSON → CSV accepts an array of objects. Open the output in the target program and check quoting, delimiters and data types.

Have a CSV or JSON file? Choose a file or paste its contents.

Open CSV ↔ JSON tool →

Read more file guides →

FileSprout.Simple, private file tools

Making everyday file tasks a little clearer.

AboutPrivacyTerms繁體中文
© 2026 FileSprout.Free tools · Local processing