en

Format JSON

Pretty-print JSON neatly indented or minify it, optionally sort the keys - all locally in your browser, with no upload.

Running locally on your device ...

Output format
  • 2 spaces
  • 4 spaces
  • Tab
  • Compact (minify)
Sort keys

Running locally on your device ...

0%

Is my file uploaded?

No. Everything runs in your browser - your file never leaves your device. How this is verifiable

No upload100% local
Your content stays with youno third-party access
Hosted in GermanyGlobal Content Delivery
Independently auditedTLS A+ · HTTP headers A+

JSON is the most common format for structured data between programs, but in transit it is often squeezed into a single long line that no human can read. This tool brings it back into shape: it parses the JSON and returns it neatly indented, so nesting, lists and objects are visible at a glance. The other way round you can also minify it - every superfluous space removed - when it should be small and fast to transmit.

You choose the indentation (two or four spaces or a tab) and can have the keys of each object sorted alphabetically. Sorting is useful to make two JSON documents comparable or to produce stable, reproducible output. Because the tool genuinely parses and re-serializes the JSON, the output is always valid JSON; broken input is not silently repaired but reported honestly as an error.

All processing runs entirely locally in your browser in pure JavaScript - your JSON is not uploaded, not stored, and no foreign library is loaded from a CDN. That matters precisely for configurations, API responses or exports, which quickly contain confidential values. You can download the result or copy it straight out.

Many online JSON formatters send your input to their own server to format it - risky when the JSON contains API keys, tokens or customer data, which is common in configurations and API responses. This tool processes your JSON strictly locally, with no account, no character limit and no ads in the result - on any device with a modern browser.

Specifications

Specifications
Input formatsText input
Output formatJSON
Batch processingNo
ProcessingLocally in your browser (JavaScript)
File uploadNone

In 3 steps

  1. Paste the JSON into the text field.
  2. Choose the output format (indent or compact), optionally sort keys.
  3. Read or download the formatted JSON.

Limitations: The tool reformats valid JSON per RFC 8259; it does not repair broken syntax or add missing quotation marks. Comments are not allowed in JSON and lead to an honest error. Very large documents are limited by your device memory. The order of array elements is always preserved; only object keys are sorted.

FAQ

Is my JSON uploaded?

No. Formatting runs entirely locally in your browser; your data never leaves your device and is not stored.

What is the difference between indenting and minify?

Indenting makes the JSON readable for humans (line breaks and spacing). Minify removes all superfluous characters so it becomes as small as possible - ideal for transmission, poor for reading.

What is sorting the keys for?

Sorted keys make two documents easier to compare (diff) and produce a stable, reproducible order. The values and the order of lists stay unchanged.

What happens with invalid JSON?

The tool reports an honest error instead of inventing a wrong result or silently changing the input.

Does this also work on a phone?

Yes, in any current mobile browser just like on desktop - the JSON stays local on the device.

Do I need an account, or is there a character limit?

No. No account and no artificial character limit - only your device memory sets a boundary for very large documents.

Is it safe to paste confidential JSON here?

Yes. Unlike many online formatters, your JSON is not sent to a server - try airplane mode, formatting keeps working.

Related tools

Change case · Sort lines · Regex tester · Escape JSON