Skip to content

JSON Formatter

Format or minify JSON while preserving numbers, strings, key order, and duplicate keys.

Files and text are processed locally in your browser, without uploads or an account.

Download your result before leaving or changing language. Use Reset to clear the current input and result.

Input

Ready for input.

How to use

  1. Paste valid JSON into the input.
  2. Choose two spaces, four spaces, or minify.
  3. Select Process, then copy or download the result.

Limits and support

Up to 1 MiB of UTF-8 text and 100 nested objects or arrays. Only whitespace outside strings changes. Comments, trailing commas, and non-JSON values are rejected.

Questions

Are large numbers and duplicate keys preserved?

Yes. Original tokens are kept, including large integers, exponents, negative zero, escaped strings, and repeated object keys.

Where is my text stored?

Your text stays in this page. It is not saved to browser storage or sent to a server. Use Reset to clear the current input and result.