JSON Formatter & Validator
Format, validate, and minify JSON with line-precise errors and a tree view. Save scratchpads when signed in.
Format, validate, and minify JSON with line-precise errors and a click-to-copy tree view. Sign in to save scratchpads of JSON you are working with so you can return to them mid-session or across days.
When to use it
- 1Pretty-printing an API response for inspection.
- 2Finding the missing comma the validator complains about.
- 3Copying the JSON path to a deeply nested field for code or queries.
How it works
- 1
Paste JSON
Left textarea. Right side shows formatted, tree, and minified views in tabs.
- 2
Catch errors
Errors show line and column with a pointer to the exact offset. Indent and sort-keys toggles in the toolbar.
- 3
Click paths in tree view
Click any node to copy its JSONPath - useful for code or jq queries.
Frequently asked
Does it handle JSONC or JSON5?
Strict JSON only in this version. Comments and trailing commas raise errors.
Is sorting keys lossless?
Yes for object keys, but be aware that some systems treat key order as semantically significant. Sort with care.
Want a tool just like this, but yours?
Every tool on this page was generated by GenMB from a single prompt. Describe yours and ship it to your own subdomain in minutes.
Build with GenMBRelated tools
Word & Character Counter
Count words, characters, sentences, paragraphs, and reading time. Save documents when signed in.
Text Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.
Text Diff Checker
Compare two texts side-by-side with line and word diff. Save comparisons to revisit later.
SQL Formatter
Format and beautify SQL queries. Multiple dialects, configurable indent, copy or download output.