JSON Formatter & Validator
Format, validate, or minify JSON, with clear error locations. Runs entirely in your browser. Nothing you paste is ever uploaded.
What can you do?
JSONTidy formats messy or minified JSON into readable, indented text, minifies readable JSON down to the smallest valid form, and validates JSON either way. Reporting exactly where parsing failed if it's not valid.
Curious how JSON actually came to exist? Read JSON's Surprisingly Personal Origin Story.
How it works
Every check runs directly in your browser using JavaScript's built-in JSON parser. Nothing is sent to a server, so it works even offline once the page has loaded.
Frequently asked questions
Is this free to use?
Yes. There's no sign-up and no limit on how much JSON you format.
Do you store what I paste?
No. Formatting and validation happen entirely client-side in your browser. See the privacy policy for details.
What happens if my JSON is invalid?
The error message from the browser's JSON parser is shown, including the character position of the problem where the browser provides one, so you can find and fix the exact spot.
What's the difference between format and minify?
Format adds indentation and line breaks to make JSON easy to read. Minify strips all unnecessary whitespace to make the file as small as possible for transmission or storage. Both produce identical data. Only the formatting differs.