Format JSON
Turn compact or difficult-to-read JSON into an indented, readable structure.
Pretty-print, minify, escape, unescape and validate JSON directly in your browser. Useful for API responses, configuration files and debugging without uploading sensitive data.
Turn compact or difficult-to-read JSON into an indented, readable structure.
Get a visible error message when the input is not valid JSON instead of silently failing.
Copy the result or download a formatted JSON file for your editor, API client or documentation.
The core formatter is designed to process text in your browser, but you should still review the page privacy policy and avoid entering secrets if you do not control the browser environment.
Format adds indentation and line breaks for readability. Minify removes unnecessary whitespace to reduce the text size.
It reports parsing errors and helps you locate a problem. It does not guess your intended data structure or repair arbitrary source code.