HomeProgrammingjson convert csv

JSON to CSV/TSV Online Converter

Supports nested structures and array export, processed locally in your browser, privacy protected

Input JSON Data

Conversion Result

  • Features
  • Instructions
  • Format Differences
  • Technical Notes

Features

This tool quickly converts JSON data to CSV or TSV format, and also supports reverse conversion. All operations are performed locally in your browser, no data upload required, protecting your privacy.

✅ Nested Structure Support

Automatically flattens nested objects, supports multi-level fields.

✅ Array Auto-expansion

Automatically expands JSON arrays into multiple rows, preserving field correspondence.

✅ CSV / TSV Dual Format

Switch between output formats with one click to meet different system import requirements.

✅ Local Processing

No data upload required, privacy protected, fast response.

Instructions

  1. Paste valid JSON data into the left text box (preferably an array of objects).
  2. Click the "To CSV" or "To TSV" button to generate the result.
  3. Download the result file, or click "Reverse Convert" to convert CSV/TSV back to JSON.

Example JSON Input

[{"name":"Zhang San","age":25,"city":"Beijing"},{"name":"Li Si","age":30,"city":"Shanghai"}]

CSV Output

name,age,city
Zhang San,25,Beijing
Li Si,30,Shanghai

Difference Between CSV and TSV

FormatSeparatorUse Case
CSVCommaExcel, Databases
TSVTabLogs, Unix Toolchain

Technical Notes

This tool is built entirely with native JavaScript, no backend required. It uses recursive parsing to handle nested objects and automatically flattens them into fields.