จัดรูปแบบ ทำให้สวยงาม และตรวจสอบ JSON ออนไลน์ พร้อมข้อความแสดงข้อผิดพลาดชัดเจนสำหรับข้อมูลที่ไม่ถูกต้อง
วิธีใช้ จัดรูปแบบ JSON
วางหรือพิมพ์ JSON ของคุณในแผงข้อมูล
กด เรียกใช้ เพื่อแยกวิเคราะห์และพิมพ์ใหม่ด้วยการเยื้อง 2 ช่องว่าง
คัดลอก JSON ที่จัดรูปแบบ หรืออ่านข้อผิดพลาดหากข้อมูลไม่ถูกต้อง
The JSON Formatter and Validator turns minified, escaped or messy JSON into a clean, indented structure you can actually read, and pinpoints syntax errors with their exact location so you can fix them fast.
It runs your input through a strict JSON parser. If parsing succeeds, the tool re-prints the data with a consistent 2-space indent, which means a clean format is also proof that your JSON is valid. If parsing fails, you get a precise error instead of a vague "something is wrong".
Developers reach for it constantly: inspecting an API response, sanity-checking a config file, cleaning up a webhook payload before saving it, or making a large blob diff-friendly before committing it to version control. Readable JSON makes structure, nesting and missing fields obvious at a glance.
Most "invalid JSON" errors come from a handful of causes: keys or strings wrapped in single quotes instead of double quotes, a trailing comma after the last item, comments (which standard JSON does not allow), unquoted keys copied from a JavaScript object, or smart quotes pasted in from a document. The error position tells you exactly where the parser gave up.
Because the whole thing runs in your browser, your JSON never leaves your device. That matters when the payload contains access tokens, customer records or anything you would not want to paste into a random website that quietly uploads it to a server.
Once formatted, copy the result with one click. If you need the opposite, the JSON Minifier strips all whitespace to produce the smallest possible payload for production.
คำถามที่พบบ่อย
เครื่องมือจะแยกวิเคราะห์ JSON ของคุณ ตรวจว่าถูกต้อง แล้วพิมพ์ใหม่ด้วยการเยื้อง 2 ช่องว่างที่สะอาดตาเพื่อให้อ่านง่าย ส่วน JSON ที่ไม่ถูกต้องจะคืนข้อความแสดงข้อผิดพลาดที่แม่นยำแทน
ไม่ JSON ของคุณถูกจัดรูปแบบทั้งหมดในเบราว์เซอร์ของคุณ จึงไม่มีการส่งข้อมูลใดไปยังเซิร์ฟเวอร์ และไม่มีการจัดเก็บ บันทึก หรือแบ่งปัน
เครื่องจัดรูปแบบทำตามมาตรฐาน JSON ที่เข้มงวด: คีย์และสตริงต้องมีเครื่องหมายคำพูดคู่ ไม่มีจุลภาคต่อท้าย และไม่มีคอมเมนต์ ข้อความแสดงข้อผิดพลาดบอกตำแหน่งที่แยกวิเคราะห์ล้มเหลว
ฝังเครื่องมือนี้
เพิ่มเครื่องมือนี้ลงในเว็บไซต์ของคุณเอง คัดลอกสคริปต์ด้านล่าง โดยจะอัปเดตให้เป็นปัจจุบันโดยอัตโนมัติ
<iframe src="https://monu.tools/embed/th/json-formatter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>เครื่องมือที่เกี่ยวข้อง
ย่อและตรวจสอบ JSON ในเบราว์เซอร์ของคุณ และดูว่าประหยัดได้กี่ไบต์
แปลง JSON เป็น CSV และ CSV กลับเป็น JSON ได้ทั้งสองทิศทาง เลือกตัวคั่น จัดการฟิลด์ที่มีเครื่องหมายอ้างอิง และคัดลอกผลลัพธ์ ทุกอย่างทำงานในเบราว์เซอร์ของคุณ
แปลง YAML เป็น JSON และ JSON กลับเป็น YAML ได้ทั้งสองทิศทาง ตรวจสอบความถูกต้องขณะแปลงและแสดงข้อผิดพลาดที่ชัดเจน ทุกอย่างทำงานในเบราว์เซอร์ของคุณ
สร้าง TypeScript interfaces จากตัวอย่าง JSON พร้อม nested types, arrays และ optional fields ทำงานในเบราว์เซอร์ของคุณ