ตัวจัดรูปแบบ JSON
Converters & Formattersจัดรูปแบบ ย่อ และตรวจสอบความถูกต้องของ JSON ได้ทันที วาง จัดรูปแบบ คัดลอก ทั้งหมดในเบราว์เซอร์ของคุณ แชร์ลิงก์ไปยังข้อมูลที่คุณกรอก
เอาต์พุต
วาง JSON เพื่อดูผลลัพธ์แบบจัดรูปแบบ Send to AI
Generate TypeScript interfaces for this JSON. Infer union types for nullable fields and name the root interface after the likely domain concept. Output only the interfaces, no commentary: ```json ```
(เอกสารเป็นภาษาอังกฤษ)
What it does
The JSON Formatter beautifies, minifies, and validates JSON entirely in your browser. Paste any JSON - messy, minified, or broken - and it returns cleanly indented, valid JSON, or tells you exactly what’s wrong and where. Everything runs 100% client-side: nothing you paste is ever sent to a server, so it’s safe for sensitive payloads.
How to use it
- Paste your JSON into the Input box (or hit Sample to load a demo payload).
- Choose Beautify (pretty-print, 2-space indent) or Minify (compact, no whitespace).
- Read the formatted result in Output, or the error message if the JSON is invalid.
- Copy the result, or Copy share link to send the exact input to a teammate.
Examples
Beautify minified JSON
Input: {"name":"CosmoDev","free":true,"tools":["json","base64"]}
Output:
{
"name": "CosmoDev",
"free": true,
"tools": ["json", "base64"]
}
Catch a syntax error
Input: {"a": 1, "b": } → Expected property name or '}' in JSON at position 12.
Good to know
- Shareable: your input is encoded in the URL (
?j=...), so a link reproduces the exact view. - Private: all parsing happens locally - safe for secrets and credentials.
- Related tools: JSON ↔ CSV, Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt., JWTJWTA compact, URL-safe token that carries claims (like identity or expiry) between two parties, signed to prevent tampering.Learn more Decoder.