Tools Guides
developer Free No signup

JSON Minifier & Beautifier

Format JSON with syntax highlighting or strip whitespace to minify — with real-time validation and size stats.

Loading tool…

About this tool

Toggle between Beautify and Minify modes: Beautify formats your JSON with 2 or 4-space indentation and color-coded syntax highlighting; Minify removes all unnecessary whitespace for production payloads. Conversion happens in real time as you type. The tool reports the original size, output size, and percentage change, and any JSON errors are flagged with an exact line and column number.

How to use

  1. 1 Paste or type your JSON into the left input panel.
  2. 2 Click 'Beautify' to format with indentation and syntax highlighting, or 'Minify' to strip whitespace.
  3. 3 Check the size stats bar to see the original size, output size, and percentage change.
  4. 4 If there are errors, read the line/column hint in the error banner and fix the JSON in the input panel.

Frequently Asked Questions

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}