JSON 差异对比
并排比较两个 JSON 对象,高亮显示新增、删除和变更字段
| Key | Left | Right |
|---|---|---|
| name | "Alice" | "Alice" |
| age | 30 | 31 |
| role | "admin" | "user" |
| tags | ||
| tags[0] | "typescript" | "typescript" |
| tags[1] | "react" | "nextjs" |
| address | ||
| city | "New York" | "New York" |
| zip | "10001" | "10002" |
| active | true |
JSON Diff Viewer — Compare Two JSON Objects
Compare two JSON objects side by side and instantly highlight added, removed, and changed fields. Color-coded diffs make it easy to spot configuration changes, API response differences, and data migrations.
FAQ
How do I compare two JSON files?
Paste the first JSON in the left panel and the second in the right panel. Changes are highlighted: green for added keys, red for removed keys, and yellow for modified values.
What are common use cases for JSON diff?
Comparing API responses before/after a code change, reviewing config file updates, debugging data pipeline transformations, and auditing environment variable changes.
Does JSON diff care about key order?
No — the diff is semantic, not textual. { a: 1, b: 2 } and { b: 2, a: 1 } are treated as identical because JSON objects are unordered by definition.
继续探索
您可能喜欢的其他 数据与电子表格…
CSV 查看与编辑器
以交互式表格查看、排序、筛选和检查 CSV 文件——全部在浏览器中完成
JSON 表格查看器
将 JSON 对象数组渲染为可排序、可搜索的 HTML 表格,支持列筛选
Excel 转 CSV
将 XLSX 和 XLS Excel 文件转换为 CSV 格式——无需上传,通过 SheetJS 在浏览器中运行
CSV 列提取器
从 CSV 文件中选取特定列并下载结果——非常适合清理大型数据集
SQL 查询 CSV
直接在上传的 CSV 文件上运行 SQL SELECT 查询——无需服务器
CSV 合并工具
将多个 CSV 文件合并为一个——重新排序、去重并自动处理表头
模拟数据生成器
生成逼真的伪造数据 — 姓名、邮箱、地址、UUID、日期和自定义字段 — 并导出为 JSON、CSV 或 SQL INSERT 语句
CSV Splitter
Split a large CSV file into smaller files by row count or by unique values in a column