JSON Formatter

Format, validate, and minify JSON in the browser without sending content to the server.

About the JSON formatter

The formatter uses the browser's JSON.parse and JSON.stringify APIs to validate, format, and minify strict JSON. It accepts objects, arrays, strings, numbers, booleans, and null, but not relaxed JavaScript syntax.

How to format JSON online

Paste the JSON, choose format, minify, or validate, and check the status. Use copy or download when the result is valid. Shared links preserve only mode and indentation by default.