Start typing to search tools…
🛠️ All Tools
💻 Programming
📋 JSON Formatter 🌳 JSON Tree ✅ JSON Validator 📦 JSON Minifier 📄 XML Formatter ✅ XML Validator 🌲 XML Tree 🎨 CSS Formatter ✨ CSS Generator 🌐 HTML Formatter ⚡ JS Formatter 🗄️ SQL Formatter 🏗️ SQL Builder 📊 CSV Formatter 📝 YAML Formatter 🔗 ER Diagram 📐 UML Diagram 🔀 Flowchart 📋 Table Schema ⚙️ Programming Tools
🌐 Network & DNS
🔍 DNS Lookup 🌍 DNS Propagation 🔎 WHOIS Lookup 🔒 SSL Checker 📡 Ping Test ⚡ Speed Test ✉️ Email Auth 👤 Username Check
🔐 Security & Encoding
🔑 Base64 Encode 🖼️ Base64 Image 🔐 MD5 Hash 🔑 Password Gen 🎭 Fake Name Gen
🖼️ Image Tools
📦 Compressor 🔄 Converter ✂️ Cropper 📐 Resizer 🎨 Filters ✨ Effects 💧 Watermark 📸 Social Image ⭐ Favicon Maker 🖼️ Image to Text 📝 OCR 📷 EXIF Viewer ⚙️ Image Engine 🎨 Color Palette
🔍 SEO & Web
🏷️ Meta Tag Gen 📱 Open Graph 🤖 Robots.txt Gen ✅ SEO Checklist 🔍 SERP Preview 🗺️ Sitemap Gen 📲 Social Debugger 🏷️ Hashtag Gen 📝 Word Counter ✨ Fancy Text ↔️ Text Compare
⚙️ Utilities
🚀 SaaS Ideas 💡 Brainstorm 🧠 Mind Map 🎲 Random Gen
ℹ️ About ✉️ Contact
🔧 Programming ✅ 100% Free ⚡ Instant

JSON Validator

Validate JSON syntax instantly. Get detailed error messages with position information, structure analysis — keys, depth, arrays — all in the browser.

Input
Output
Ready — paste your input and click Format
Try a sample: Simple Object Nested JSON JSON Array
📊 Stats
Total Keys
Max Depth
Arrays
Size
⌨️ Shortcuts
Ctrl+EnterValidate JSON
Ctrl+Shift+CCopy output
Ctrl+LClear all
TabInsert indent in editor
💡 Tips
🔑
Keys must be strings wrapped in double quotes — {name:"x"} is invalid; {"name":"x"} is correct.
🚫
No trailing commas — a comma after the last array item or object property causes a parse error in JSON.
🔢
null not undefined — JSON supports null but not JavaScript's undefined.
💬
No comments — JSON does not support // or /* */ comments.

JSON Validation Rules

JSON has strict syntax rules derived from JavaScript object notation. Keys must be double-quoted strings. Values must be one of: string, number, boolean (true/false), null, array, or object. No trailing commas, no comments, no undefined values, and no single quotes.

Common JSON Errors

  • Single-quoted strings — JSON requires double quotes for all strings
  • Trailing commas — no comma allowed after the last item in an array or object
  • undefined values — use null instead
  • Comments — JSON does not support any comment syntax

Frequently Asked Questions

The most subtle JSON errors are: (1) a trailing comma after the last property in an object or last element in an array, (2) a BOM (byte order mark) character at the start of the file (invisible in most editors), (3) using curly quotes (“”) copied from a word processor instead of straight quotes.
For minor issues like trailing commas or comments, try json5 or jsonc parsers. For larger issues, manually review the error position shown by this validator. The JSON Formatter tool will also show the error position when it fails to parse.
JSONP (JSON with Padding) wraps JSON in a function call like callback({...}) to bypass old browser cross-origin restrictions. It is not standard JSON and will fail JSON.parse(). Modern APIs use CORS instead of JSONP.
Done!