Skip to content
jsontool

JSON Formatter and Beautifier

Turn compact or messy JSON into clean, readable output. Choose your indentation, sort keys alphabetically and copy the result with a single click.

Type or paste JSON. Validation runs as you type and reports the exact line and column of any error.

Result

The result will appear here.
Ready Waiting for input.
Size
0
Lines
0
Depth
0
Nodes
0
Keys
0

Everything the tool does

Full JSON linting plus the extras that usually need a desktop editor.

  • Real-time validation

    Every keystroke is checked. A strict RFC 8259 parser reports the first problem with its exact line and column.

  • Errors you can actually read

    Instead of "syntax error", you get "Trailing comma before } is not allowed" plus a hint on how to fix it.

  • Beautify and minify

    Pretty print with your preferred indentation, or compress to a single line and see the bytes you saved.

  • Key sorting and de-duplication

    Sort object keys A→Z or Z→A, and strip repeated keys that silently overwrite each other.

  • Schema validation and conversion

    Check a document against JSON Schema draft-07, or convert it straight to YAML or XML.

  • Compare, save and share

    Diff two documents side by side, keep a private session history and publish a result behind a short link.

Frequently asked questions

Is jsontool free to use?

Yes. Validation, formatting, minification, schema checks, conversion and comparison are free and unlimited, and no account is required.

Is my JSON uploaded anywhere?

Your document is sent to the server only to be parsed, and the result is returned immediately. Nothing is stored unless you explicitly save it to your history or create a share link.

Why does the tool report an error that my editor accepts?

Many editors accept JavaScript object notation, JSON5 or JSONC. Strict JSON forbids comments, trailing commas, single quotes and unquoted keys — jsontool follows RFC 8259 exactly.

What are duplicate keys and why are they only a warning?

RFC 8259 allows an object to repeat a key, but every parser keeps just one value — usually the last. That silently loses data, so the tool flags it and offers one-click removal.

How large a document can I validate?

The default limit is two megabytes per document, which covers the overwhelming majority of API responses and configuration files.

Which JSON Schema version is supported?

The schema validator implements the draft-07 core keyword set, including types, numeric and string bounds, object and array shapes, combinators, conditionals and local $ref pointers.