ตัวจัดรูปแบบ JSON

🔒 Secure & Client-side

จัดรูปแบบ, ตรวจสอบ และย่อขนาดข้อมูล JSON ปลอดโฆษณาสำหรับนักพัฒนา

How to use

  1. Paste your JSON into the input panel on the left.
  2. Click Format to pretty-print with 2-space indentation, Minify to strip whitespace, or Validate to check syntax without changing the output.
  3. Click Copy to copy the result to your clipboard.
  4. Everything runs in your browser — your JSON is never uploaded to a server.

Large inputs (over 1 MB) trigger a confirmation prompt because parsing them may briefly freeze the page. Numbers longer than 15 digits will trigger a precision warning since JavaScript stores them as 64-bit floats.

Examples

Pretty-print compact JSON:

Input:  {"name":"Ada","tags":["dev","math"]}
Output: {
  "name": "Ada",
  "tags": [
    "dev",
    "math"
  ]
}

Minify with trailing-comma error:

Input:  {"a": 1, "b": 2,}
Result: ✗ Invalid JSON — Unexpected token } in JSON