JSON Formatter & Validator
Paste your JSON below to format, validate or minify it. Choose your indentation level. All processing happens locally in your browser.
What is JSON?
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. It supports objects, arrays, strings, numbers, booleans, and null values.
Formatting (pretty-printing) adds indentation to make JSON readable, while minifying removes all unnecessary whitespace for smaller payload sizes.
When something will not parse, the message alone rarely helps, so the page works out the line and column from the reported offset and prints the offending line with a caret under it. The loose option strips comments and trailing commas first, which is what makes a tsconfig or an editor settings file usable here at all. Sorting the keys makes two documents comparable in a diff, and the ASCII option escapes everything above plain ASCII for pipelines that mangle anything else.
Related tools
Reshaping data by hand again?
A payload you have to fix in a browser tab every time is a job for code. We build the integrations, parsers and services that move data between systems, and we repair the ones that quietly corrupt it on the way through.
Tell us what you are moving