STEMSTUDIO
Convert CSV and JSON
Click to skip
Data · converted on this device
Turn spreadsheet CSV into JSON and back — with a table preview so you can see the columns line up.
Tab-separated is what you get pasting straight out of a spreadsheet. Semicolon is what Excel writes in locales that use a comma for the decimal point. Turn it off to read the CSV as an array of arrays, or to write CSV with no header row — for raw data that never had column names. Turns "123" into a number, "true" into a boolean and an empty cell into null. Values that would not survive the trip — leading-zero codes, long IDs — are kept as strings. By default only values containing the delimiter, a quote, a line break or edge spaces are quoted. Excel mis-reads UTF-8 CSV without a BOM. This affects the downloaded file only — not what is shown on screen or copied. Check that the split is what you expected. With the wrong delimiter everything lands in one column.
把 CSV 转成 JSON,也能转回来。选择分隔符(逗号、制表符或分号)以及第一行是否为表头;引号内的逗号和换行都能正确读取。解析出的表格会和输出一起显示。
支持格式
CSV / TSV / JSON
能。在引号内,换行是值的一部分,预览表格会把它显示为该单元格内的折行。不在引号内的换行是行分隔符,这是文件本身的意思。
这个警告表示某一行和第 1 行的宽度不一致。常见原因是引号没有闭合,或没有引号的值里有分隔符。看预览表格就知道那一行实际在哪里断开。转换仍会进行,缺少的字段当作空值。
几万行没问题。因为输入时会重新解析,超过几 MB 打字就会开始卡。预览显示前 20 行;复制和保存总是使用全部数据。
不能——.xlsx 是另一种压缩格式。请在 Excel 中另存为“CSV UTF-8”,或者选中工作表复制,以制表符分隔的形式粘贴到这里。
不会。解析和转换完全在页面中进行,关闭标签页就消失,所以不能外传的文件也可以放心在这里用。
Ratings appear once there are 10.
The tool name, this page’s path and your browser type are sent with it. Files are never sent. For a reply, use the email on the Contact page.
分类
可以查看处理在哪里进行、文件发送到哪里、如何保存。