Pretty-print and validate JSON text, with 2/4-space or tab indentation, and an optional one-line minify
No comments yet. Be the first!
Pretty-print and validate JSON with 2- or 4-space or tab indentation, or minify it to one line. Syntax errors are reported.
This tool is specifically for formatting, validating, and minifying JSON text. The JSON Viewer is a separate tool for tree-structure browsing with syntax highlighting. They don't overlap — each serves a different need.
Yes — alongside 2-space and 4-space options, a tab-indent option is also available.
The tool shows the actual error message from the browser's native JSON.parse (including roughly where the problem is), and keeps your original input untouched — it never clears the input box.
Formatting runs entirely in your browser — the source you paste or upload here is never sent to any server.