JSON a CSV
Convierte matrices de objetos JSON en archivos CSV descargables.
Se ejecuta en tu navegador; tus datos nunca salen de tu dispositivoGratis, sin registro
CSV output
The CSV output will appear here.
Cómo funciona
Your JSON is parsed in the browser, then each object becomes a CSV row. The header row is built from the union of keys across all objects, in order of first appearance. Nested objects can be flattened (a user.name key becomes a user.name column), and arrays are serialized as JSON text within the cell.
Output follows RFC 4180: cells containing the delimiter, quotes or line breaks are quoted, and quotes are escaped by doubling.
Características
- Array of objects, single object, or array of primitives
- Nested objects flattened to dotted-path columns (optional)
- Comma, semicolon, tab or pipe delimiter
- Header row optional
- RFC 4180 quoting and escaping, Excel-safe output
- Copy, download, upload and clear actions
Cómo usarla
- Paste JSON or upload a .json file.
- Pick a delimiter and whether to flatten nested objects.
- Press Convert to CSV.
- Copy the CSV or download it as
converted.csv.
Ejemplo
Input:
[
{ "name": "John", "age": 30 },
{ "name": "Sarah", "age": 25 }
]Output:
name,age
John,30
Sarah,25Preguntas frecuentes
- What JSON shapes can be converted?
- An array of objects (the typical case, where keys become columns), a single object (one row), or an array of primitives (one value column). Nested objects can be flattened into dotted-path columns (e.g. address.city). Top-level numbers, strings and booleans cannot become a table and produce a clear error.
- How are missing fields handled?
- The columns are the union of all keys across rows. A row that is missing a key gets an empty cell, with no error and no dropped data.
- Is my data uploaded anywhere?
- No. Conversion runs entirely in your browser. Your JSON and the resulting CSV never leave your device.
- Which delimiter can I choose?
- Comma (the CSV standard), semicolon (common in European locales), tab (TSV) and pipe. Quoting and escaping follow RFC 4180 regardless of delimiter.
- What happens to values containing commas or quotes?
- They are automatically wrapped in double quotes, and inner quotes are doubled (""), exactly as the CSV standard requires. Excel, Google Sheets and every CSV library will read them correctly.
Herramientas relacionadas
- CSV a JSONTransforma archivos CSV en JSON estructurado con detección automática de encabezados.
- Formateador JSONFormatea y embellece JSON con sangría personalizada o minimízalo en un clic.
- Minificador JSONElimina todos los espacios en blanco y saltos de línea para reducir el tamaño de tus archivos JSON.