en

Format JSON

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

Indent
  • 2 spaces
  • 4 spaces
  • Tab
Sort keys
Minify

Running locally on your device ...

0%

Your files never left your device

    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
    Servers in GermanyGDPR by design
    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.

    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 indent, optionally sort keys or minify.
    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.

    Related tools