CSV轉JSON工具
將CSV資料轉換為JSON物件陣列。第一行被視為表頭。
如何使用本工具
- 1
Paste your CSV — make sure the first row holds the column headers.
- 2
Click Convert. Each following row becomes a JSON object keyed by the header names.
- 3
Copy the JSON array, ready to drop into a JavaScript file, API mock, or seed script.
什麼是CSV轉JSON工具?
CSV轉JSON是JSON轉CSV的逆過程。當你從試算表或資料庫的匯出中獲得資料,並需要在JavaScript應用中使用時,它會很有用。本工具遵循RFC 4180:帶引號的欄位會被去除引號,雙引號會被反跳脫,引號內的換行符會被保留。
常見使用場景
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.
常見問題
它使用什麼分隔符?▼
資料類型是如何處理的?▼
相關工具
JSON轉CSV轉換工具
將由物件組成的JSON陣列轉換為CSV格式。非常適合將API資料匯出到試算表。
CSV轉SQL INSERT
根據CSV資料產生SQL INSERT語句。適用於將CSV匯出檔案匯入資料庫。
二進位轉十六進位轉換器
將二進位數轉換為十六進位。對於相同的值,十六進位比二進位精簡 4 倍。
十六進位轉二進位轉換工具
將十六進位數轉換為二進位。每個十六進位位元恰好展開為4個二進位位元。
十進位轉二進位轉換器
將十進位數轉換為二進位、十六進位和八進位,一次性得出所有進位。
ASCII 轉十六進位轉換器
將文字轉換為 ASCII 十六進位碼,或進行反向轉換。每個字元都會轉換為其 2 位數的十六進位值。