JSON Formatter
Pretty-print, minify, and validate JSON in your browser. Paste a payload, fix indentation, and spot syntax errors without sending data to a server. Works for APIs, config files, and nested objects. Output stays on your device.
Runs in your browser. Nothing is uploaded.
About this tool
Format JSON in your browser: beautify with 2- or 4-space indent, minify into a single line, and validate as you paste. Optional key sorting makes diffs and config reviews easier. Syntax errors report a line and column so you can jump to the bad token instead of staring at a generic 'Unexpected token' banner.
How to use: paste or type JSON in the input pane. Choose indent and whether to sort keys, then copy the output from the sticky bar. Minify is the same parser with whitespace stripped, which is useful before stuffing a blob into an env var. Invalid JSON keeps the previous good output and shows the parse error.
Example: a one-line API response becomes a readable tree; a hand-edited fixture with a trailing comma fails fast at the reported column. This is JSON.parse in the tab, not a schema registry and not JSON5.
Payloads from staging APIs, local fixtures, and secrets in config stay on the device. Use this instead of posting production JSON to a public beautifier. After the page loads you can keep formatting offline.
Related Web tools
JavaScript Formatter
Beautify or compact JavaScript in the browser. Re-indent minified snippets from DevTools, or collapse whitespace for a rough size check. Formatting stays on-device so proprietary scripts are never posted to a beautifier.
SQL Formatter
Beautify SQL in the browser with dialect-aware formatting for PostgreSQL, MySQL, SQLite, and T-SQL. Paste a query, pick indent, and copy readable SQL without sending statements to a formatter service.
HTML Formatter
Beautify or minify HTML markup locally. Re-indent nested tags, collapse whitespace for production snippets, and copy formatted markup without posting templates to a formatter service. Handy for emails, partials, and messy copy-paste from DevTools.
CSS Formatter
Format and minify CSS in the browser. Expand rules for readability or compress stylesheets for a quick size check. Paste a snippet, tidy selectors and declarations, and copy the result. Proprietary styles are not uploaded.
XML Formatter
Pretty-print or minify XML documents in your browser. Indent nested elements from SOAP, RSS, and config files, or collapse whitespace for a compact blob. Parsing and formatting never leave the tab.
URL Encoder
Percent-encode and decode URLs and query parameters with encodeURIComponent-style rules. Fix broken links, escape reserved characters, and inspect encoded query strings locally. A small, private alternative to sending URLs through an online encoder.