Antpact Toolbox
中文
Home › Utilities & Developer › CSV ⇄ JSON Converter

CSV ⇄ JSON Converter

Convert CSV and JSON both ways with header, delimiter and indent options — live results.

Privacy: this tool runs entirely in your browser — files are never uploaded, and data is gone when you close the page.

How to use

  1. Pick a direction (CSV → JSON or JSON → CSV).
  2. Paste your content and adjust delimiter, header and indent options.
  3. Click the result to copy, or download it as a file.

FAQ

Will non-English text break?

No — everything is UTF-8. If an exported CSV looks garbled elsewhere, it was opened with the wrong encoding; reopen it as UTF-8.

Is the first row always the header?

By default yes ("First row = header" is on), producing objects keyed by column name. Turn it off to get an array of arrays.

What if a field contains a comma or newline?

Wrap that field in double quotes and escape inner quotes by doubling them (""). This tool follows that rule both when parsing and generating.

Why did my numbers become strings?

With "Auto-detect numbers" on, numeric values become numbers and true/false become booleans. Turn it off to keep everything as text (e.g. IDs like 001).

How large a file can it handle?

Small to medium files (tens of thousands of rows) convert instantly in the browser; split very large files to avoid lag.

About this CSV ⇄ JSON Converter

CSV parsing follows RFC4180 (quoted commas/newlines, escaped double quotes); JSON uses the browser native parser. Switching direction auto-fills the input with the previous result for easy round-tripping. All local.