把 CSV 转成 JSON,且不改动你的值
能正确读出引号字段、成对引号与单元格内换行,先嗅探分隔符,输出 JSON 或 NDJSON,每个值都保持原来的文本样子。
分隔符留在自动,除非文件被认错了。
在本标签页内运行,不上传任何内容。
结果
免费档:每文件最多 5 MB,每次 1 个文件,每天 5 次。这件工具单件买断 $24,一次付款。对比价格。
授权:免费档。
这页与别处不同之处
表格导出的 CSV 里,编号常带前导零、日期常是奇怪的格式、金额里可能还有千分位逗号。这个页面用单遍状态机解析引号与换行,绝不把 007 变成 7、也不把 1,234 拆成两个字段;分隔符先嗅探再确认,重复列名会显式报出而不是静默覆盖。
保留每个值的原始文本,不擅自推断类型,重复列名显式报出而不是覆盖。
示例输入与输出
| 环节 | 情形 | 体积 | 说明 |
|---|---|---|---|
| 输入 | 1,204 行供应商清单,分号分隔 | 145 KB | exported from a spreadsheet in a German locale, where the delimiter is a semicolon and decimals use commas |
| 输出 | 同样这些行的 JSON 数组 | 226 KB | one object per row, column names taken from the header, all values still strings |
这里写的是本页构建时对照的演示数字,不是对每个文件的承诺。
你可以自己核对什么
| 承诺 | 测试结果 |
|---|---|
| 引号里的逗号或换行不会把字段拆开。 | 一行 "Doe, John" 输出为 1 个值;带引号的 2 行备注保留换行,不会变成 2 条记录。 |
| 开头的零在转换后还在。 | 编号写成 007,输出仍是字符串 "007",不会悄悄变成数字 7。 |
常见问题
以下问答目前仍为英文原文。
Why are numbers quoted in the output?
Because a CSV has no types. A part number "007" and a price "1.50" are indistinguishable from text, and guessing turns the first into 7 and the second into a float that prints as 1.5. Keeping strings means the output says exactly what the file said.
Which delimiters are detected?
Comma, semicolon, tab and pipe. The first line is scanned with quote awareness, so a header like "last, first" does not make a semicolon file look comma-separated.
What happens to rows with missing cells?
They are kept, and missing trailing cells become empty strings rather than nulls, so the object shape stays consistent across records.
What is NDJSON for?
One JSON object per line, which is what bulk import endpoints and log pipelines usually want. It streams better than a single array and diffs cleanly in version control.
Is my data uploaded?
No. The file is read and converted in this tab. Nothing is sent anywhere, which is why the size limit is generous.
价格
这件工具一次性 $24,只要工具还在就一直可用。一次付款,不是订阅。授权存在当前浏览器里,凭交易号可在别处恢复。
免费档:每次 1 个文件,每文件 5 MB,每天 5 次。买断:50 个文件,每文件 200 MB。