Diysb Tools

Konvertieren Sie CSV in JSON

Konvertieren Sie CSV-Dateien in das JSON-Format mit anpassbaren Optionen für Trennzeichen, Anführungszeichen und Ausgabeformatierung. Unterstützt werden Header, Kommentare und dynamische Typkonvertierung.

CSV-Tools

Was ist ein CSV-zu-JSON-Konverter?

Dieses Tool konvertiert CSV-Dateien (Comma Separated Values) in JSON-Datenstrukturen (JavaScript Object Notation). Es unterstützt verschiedene CSV-Formate mit anpassbaren Trennzeichen, Anführungszeichen und Kommentarsymbolen. Der Konverter kann die erste Zeile als Überschrift behandeln, Leerzeilen überspringen und Datentypen wie Zahlen und Boolesche Werte automatisch erkennen. Das resultierende JSON kann für Datenmigration, Backups oder als Eingabe für andere Anwendungen verwendet werden.

Eingabe-CSV
JSON-Ausgabe
Werkzeugoptionen
Eingabe-CSV-Format
Spaltentrennzeichen (z. B. , ; \t)
Feld Zitat (z. B. ")
Kommentarsymbol (z. B. #)
Konvertierungsoptionen
Behandeln Sie die erste Zeile als Spaltenüberschrift
Leere Zeilen in der CSV-Eingabe ignorieren
Automatische Konvertierung von Zahlen und Booleschen Werten
Konvertieren Sie CSV in JSON Beispiele

Basic CSV to JSON Array

Convert a simple CSV file into a JSON array structure.

name,age,city John,30,New York Alice,25,London
name,age,city John,30,New York Alice,25,London
[ { "name": "John", "age": 30, "city": "New York" }, { "name": "Alice", "age": 25, "city": "London" } ]
[ { "name": "John", "age": 30, "city": "New York" }, { "name": "Alice", "age": 25, "city": "London" } ]
Eingabe-CSV-Format
Spaltentrennzeichen (z. B. , ; \t)
Feld Zitat (z. B. ")
Kommentarsymbol (z. B. #)
Konvertierungsoptionen
Behandeln Sie die erste Zeile als Spaltenüberschrift
Leere Zeilen in der CSV-Eingabe ignorieren
Automatische Konvertierung von Zahlen und Booleschen Werten

CSV with Custom Delimiter

Convert a CSV file that uses semicolons as separators.

product;price;quantity Apple;1.99;50 Banana;0.99;100
product;price;quantity Apple;1.99;50 Banana;0.99;100
[ { "product": "Apple", "price": 1.99, "quantity": 50 }, { "product": "Banana", "price": 0.99, "quantity": 100 } ]
[ { "product": "Apple", "price": 1.99, "quantity": 50 }, { "product": "Banana", "price": 0.99, "quantity": 100 } ]
Eingabe-CSV-Format
Spaltentrennzeichen (z. B. , ; \t)
Feld Zitat (z. B. ")
Kommentarsymbol (z. B. #)
Konvertierungsoptionen
Behandeln Sie die erste Zeile als Spaltenüberschrift
Leere Zeilen in der CSV-Eingabe ignorieren
Automatische Konvertierung von Zahlen und Booleschen Werten

CSV with Comments and Empty Lines

Process CSV data while handling comments and empty lines.

# Comment id,name,active 1,John,true 2,Jane,false 3,Bob,true
# Comment id,name,active 1,John,true 2,Jane,false 3,Bob,true
[ { "id": 1, "name": "John", "active": true }, { "id": 2, "name": "Jane", "active": false }, { "id": 3, "name": "Bob", "active": true } ]
[ { "id": 1, "name": "John", "active": true }, { "id": 2, "name": "Jane", "active": false }, { "id": 3, "name": "Bob", "active": true } ]
Eingabe-CSV-Format
Spaltentrennzeichen (z. B. , ; \t)
Feld Zitat (z. B. ")
Kommentarsymbol (z. B. #)
Konvertierungsoptionen
Behandeln Sie die erste Zeile als Spaltenüberschrift
Leere Zeilen in der CSV-Eingabe ignorieren
Automatische Konvertierung von Zahlen und Booleschen Werten