JSON Formatter

Beautify, minify JSON data with syntax checking, error reporting and custom settings

📝 JSON Input

Characters: 0
Lines: 0
Parse Status: Not parsed

📋 Output Results

Characters: 0
Lines: 0
Compression: 0%
Characters: 0
Lines: 1
Compression: 0%
JSON Tree View will be displayed here
📁
点击或拖拽JSON文件到此处上传
支持 .json 和 .txt 文件格式

JSON Syntax Example

{ "name": "Product Name", "price": 99.99, "in_stock": true, "tags": [ "New", "Promotion" ], "metadata": { "created_at": "2023-01-01", "updated_at": null } }
← Back to Tool List

Usage Tips

  • Enter JSON text and click "Format JSON" button to get beautified JSON
  • Customize indentation size (0-8 spaces)
  • Select "Sort by keys" to alphabetically order JSON object keys
  • Three output views: Formatted (readable), Minified (compact), Tree View (structured)
  • Enter JSON via text box or upload JSON files directly
  • Tool automatically validates JSON syntax and provides error hints
  • Real-time statistics displayed: characters, lines, and parse status
  • Formatted JSON can be copied or downloaded with one click