RevealTheme logo

CSV-naar-JSON-converter

Zet CSV-gegevens om in een JSON-array van objecten. De eerste rij wordt behandeld als de koptekst.

Hoe u deze tool gebruikt

  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.

Wat is de CSV-naar-JSON-converter?

De conversie van CSV naar JSON is de inverse van JSON naar CSV. Dit is handig wanneer u gegevens ontvangt uit een spreadsheet- of database-export en deze in een JavaScript-applicatie moet gebruiken. Deze tool volgt RFC 4180: velden tussen aanhalingstekens worden uitgepakt, dubbele aanhalingstekens worden ge-unescaped en regeleinden binnen de aanhalingstekens blijven behouden.

Veelvoorkomende toepassingen

  • 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.

Veelgestelde vragen

Welk scheidingsteken wordt gebruikt?
Standaard een komma. TSV (gescheiden door tabs) vereist voorbewerking.
Hoe worden de typen verwerkt?
Alle waarden zijn tekenreeksen: JSON heeft getypeerde getallen, maar CSV parseren zonder schema is dubbelzinnig. Converteer de typen in uw applicatie.

Gerelateerde tools