喜歡 AllTool.io 嗎?請我們喝杯咖啡吧 ☕
AllTool.io
資料絕不離開瀏覽器

JSON 格式化工具

一鍵將 JSON 美化、縮排,可自訂縮排層級。全部在瀏覽器內運算。

貼上壓縮過或雜亂的 JSON,立刻得到整齊縮排、易於閱讀的結果。可選 2 空格、4 空格或 Tab,並可依鍵名字母順序排序。

JSON 輸入
結果
結果將顯示於此。

Frequently asked questions

Is my JSON data uploaded to a server?

No. All JSON formatting, validation, and minification runs directly in your browser. Your data stays on your device and is never transmitted anywhere.

What does "Sort keys" do?

When enabled, object keys in your JSON output are sorted alphabetically. This makes it easier to compare two JSON documents or to find a specific key in a large object.

What is the difference between formatting and minifying?

Formatting adds indentation and line breaks to make JSON human-readable. Minifying removes all unnecessary whitespace to make the JSON as compact as possible — ideal for API responses and data storage.

How do I fix a JSON parse error?

The validator shows the exact error message and position. Common issues include missing commas, trailing commas (not allowed in JSON), unquoted keys, or using single quotes instead of double quotes around strings.

我們不會儲存您的任何資料。