Beautify, minify and validate JSON; convert JSON to/from XML and CSV. Runs locally.
This free online JSON formatter beautifies, minifies and validates JSON — and converts JSON to/from XML and CSV — entirely in your browser. 免费在线JSON格式化工具:美化、压缩、校验 JSON,并支持 JSON ⇄ XML、JSON ⇄ CSV 互转,所有处理在浏览器本地完成,数据不会上传。There is no upload step at all: everything runs on your machine.
The same page handles format migration: JSON → XML wraps arrays as repeated elements and keeps attributes; XML → JSON turns repeated sibling tags into arrays. CSV ⇄ JSON parses quoted fields, custom delimiters (comma / semicolon / pipe / tab) and header rows — handy when swapping data between databases, spreadsheets and APIs. 支持 JSON 与 XML、CSV 之间的互转,可自定义 CSV 分隔符与表头。
All parsing and conversion happens locally with the browser's native JSON, XML and string APIs. Your data is never transmitted, logged or stored. 所有解析与转换在本地完成,数据不外传、不留存。
Q: Why does Beautify fail but my app parses the same text? / 为什么这里提示解析失败? — Check for duplicate keys, trailing commas or single quotes: strict JSON requires double quotes and no trailing comma. 严格 JSON 要求双引号、不能有尾逗号。
Q: Can I format very large JSON (several MB)? / 能格式化很大的 JSON 吗? — Yes. Files up to a few megabytes are fine on any modern browser; extremely large documents may just take a moment. 支持数 MB 的文档。