RevealTheme logo

Conversor de CSV a JSON

Convierte datos CSV en un array JSON de objetos. La primera fila se trata como el encabezado.

Cómo usar esta herramienta

  1. 1

    Paste your CSV — make sure the first row holds the column headers.

  2. 2

    Click Convert. Each following row becomes a JSON object keyed by the header names.

  3. 3

    Copy the JSON array, ready to drop into a JavaScript file, API mock, or seed script.

¿Qué es el Conversor de CSV a JSON?

La conversión de CSV a JSON es la inversa de JSON a CSV. Resulta útil cuando recibes datos de una exportación de hoja de cálculo o base de datos y necesitas usarlos en una aplicación JavaScript. Esta herramienta sigue la RFC 4180: los campos entre comillas se desenvuelven, las comillas dobles se desescapan y los saltos de línea dentro de las comillas se conservan.

Casos de uso comunes

  • Turn a clean spreadsheet of products, users, or locations into a JSON array to seed a database or mock an API.

  • Convert exported analytics or CRM data into JSON for a quick chart or dashboard prototype.

  • Build test fixtures from a CSV someone handed you, without writing a parser.

  • Migrate config that lives in a spreadsheet into a JSON file your app reads at build time.

  • Sanity-check a CSV's structure — malformed rows become obvious when the object keys stop lining up.

  • Hand front-end developers ready-to-use JSON instead of a raw export they'd have to parse themselves.

Preguntas frecuentes

¿Qué separador usa?▼
Coma por defecto. El TSV (separado por tabulaciones) requiere preprocesamiento.
¿Cómo se gestionan los tipos?▼
Todos los valores son cadenas: JSON tiene números con tipo, pero analizar CSV sin un esquema es ambiguo. Convierte los tipos en tu aplicación.

Herramientas relacionadas