JSORT

JSON 键排序

递归排序 JSON 键名

🔒 100% client-side — your data never leaves this page
JSON Input
Sorted JSON
Sorted JSON will appear here
🔒 100% client-side

About this tool

将 JSON 对象键名按字典序递归排序,输出稳定且可读的结构。适用于接口样本整理、配置标准化、Git Diff 对比和测试快照场景,显著降低无效改动噪音。

Frequently Asked Questions

Does it sort nested objects?

Yes. Nested objects are sorted recursively while preserving array order.

Will array item order change?

No. Arrays keep their original order; only object keys are sorted.

What if JSON is invalid?

You will get a parse error and no output until the input is valid JSON.