Practical answers for formatting, validating, comparing, and working with JSON safely.
FormatJSON is a client-side JSON formatter and editor. It can format (pretty print), minify, sort keys, generate JSONPath output, and compare two JSON inputs.
The formatter and editor run in your browser. Your JSON is processed on your device. Pages may still load third‑party resources (for example ads and icons) like most websites.
Paste JSON into the editor and click Format. If the JSON is valid, it will reformat with consistent indentation.
Click Minify to remove whitespace and line breaks. This is helpful when you want a compact payload for a request or storage.
Most errors are caused by one of these:
{"a":1,}{'a':1}{a:1}Yes, but browser memory and performance are the limiting factors. If the page feels slow, try the mobile editor or split the JSON into smaller parts.
Some browsers restrict clipboard access. If clipboard APIs aren’t available, the paste button is hidden.
It sorts object keys alphabetically (case-insensitive). Arrays are kept in their original order unless they contain sortable primitives.
JSONPath is a way to refer to a location inside JSON (similar to XPath for XML). It’s useful for debugging APIs and extracting values from nested objects.
See examples in JSONPath examples.
Paste JSON into “JSON One” and “JSON Two”, then click Load Diff. The diff view highlights additions, removals, and changes.
See tips in Compare JSON guide.
This tool focuses on standard JSON (RFC 8259). If your input includes comments, trailing commas, or single quotes, convert it to valid JSON first.
Once the page assets are loaded, the formatter/editor logic runs locally. Offline behavior depends on your browser caching and whether third-party resources are required for the UI you’re using.
Please contact support with a short repro example (sanitize any sensitive data).