Skip to content

JSON formatter

Format, validate, minify and sort JSON with syntax highlighting.

Processed on your device

  1. How it works
  2. 1Paste your JSON.
  3. 2Choose indentation, minify or sort keys.
  4. 3Copy or download the result.
Loading tool…

About JSON formatter

Format, validate, minify and sort JSON with syntax highlighting. If the JSON has an error, the exact line and column are shown so you can find it quickly.

Example: paste an API response written on a single line and format it to read it with indentation. If it fails, the tool points to the problem, such as an extra comma or an unclosed quote. To send it again, minify it.

Frequently asked questions

Is my text saved or sent anywhere?

No. The text is processed in your browser and never leaves your device.

What does “sort keys” do?

It sorts each object’s keys alphabetically, which helps when comparing two JSON documents.

Does it accept comments or trailing commas?

No. Standard JSON is validated; comments and trailing commas are flagged as errors.

  • Base64

    Encode and decode text or files in Base64 (UTF-8 and URL-safe).

  • URL encoder

    Encode and decode URLs and inspect their parts and parameters.

  • Code diff

    Compare two code snippets line by line with line numbers.

  • Merge PDF

    Combine several PDFs into a single document in the order you choose.