To batch convert CSV files to JSON, you can use a Python script. Below is a script that reads all .csv files in a folder and converts each one into a .json file with the same name.
Instructions:
-
Save the script to a
.pyfile. -
Create a folder named
csv_filesand place your.csvfiles inside. -
Run the script. It will create a
json_filesfolder and store the converted JSON files there.
Would you like a version that merges all CSVs into one JSON file instead?
Share this Page your favorite way: Click any app below to share.