Mr. Latte PortalTools

Tools

JSON formatter and validator

Pretty-print or minify JSON and find syntax errorsNo sign-up. What you type never leaves this browser

JSON formatter and validator

Indent

Result

Enter values to see the result.

FAQ

Is it safe to paste JSON with API keys?

It is processed only in this browser and never sent. Still, removing secrets first is a good habit.

What about comments or trailing commas?

Standard JSON does not allow them, so they are reported as errors.

About this tool

This tool reads pasted text with JSON.parse to validate it and writes it back with JSON.stringify using the chosen indentation. The text never leaves this browser.

  1. Choose 2 spaces, 4 spaces, tabs or a single line.
  2. Sort keys orders object keys alphabetically, which makes two documents easier to compare.
  3. For invalid JSON, the position the browser reports is shown as a line and column.

What you enter is worked out only in this browser and never sent to a server. Nothing you type is stored; only the lists of recently used and favorite tools stay in this browser.