ToolWren logo ToolWren
ToolWren › JSON

JSON Formatter & Minifier

Paste JSON to pretty-print it with clean indentation, or minify it to a single compact line. Invalid JSON is reported with the parser's error message.

100% client-side · nothing is uploaded

Loading tool…

How to use the JSON

  1. Paste your JSON into the Input box — it is validated as you type.
  2. Choose your indentation (2 spaces, 4 spaces or tab) and tick Sort keys to order keys alphabetically.
  3. Click Beautify to pretty-print or Minify to compress to one line.
  4. Use Copy or Download .json to save the result; any syntax error is reported with details.

Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.

About JSON

What is JSON?

JSON (JavaScript Object Notation) is a lightweight, human-readable data-interchange format built from objects, arrays, strings, numbers, booleans and null. It's the de-facto format for web APIs and config files.

Beautify vs. minify

Beautify adds newlines and 2-space indentation so JSON is easy to read and diff. Minify strips all unnecessary whitespace to reduce payload size for storage or transport.

Validation

If your input isn't valid JSON, the tool shows the exact parse error (for example a trailing comma or unquoted key) so you can fix it quickly.

Frequently asked questions

Does this validate my JSON?
Yes. If parsing fails, you'll see the JavaScript JSON parser's error message describing the problem.
Will it reorder or change my keys?
No. Beautifying and minifying preserve key order and values exactly; only whitespace changes.
Can it handle large files?
It processes everything in memory in your browser, so very large files depend on your device's RAM, but typical API responses are instant.
Does it support comments or trailing commas?
No — standard JSON forbids both. Remove them first (those are JSON5/JSONC features).

Related tools