JSON Formatter / Minifier

Format, validate and minify JSON as you type. Errors show line, column and a clear cause. Choose the indentation and sort keys if needed.

Frequently asked questions

What does a JSON formatter do?

It indents JSON data so it becomes readable, or removes all whitespace (minify) to make it smaller. Invalid JSON is detected along the way.

Can I paste API responses containing tokens?

Yes. Since nothing is sent to a server, sensitive data such as tokens or customer data stays on your computer.

How does this tool work?

Formats JSON so it is readable, validates it or writes it compactly on one line.

Paste JSON, open a file or drop it. The result appears on the right as you type, formatted with 2 or 4 spaces or tabs, or minified. Optionally all keys are sorted alphabetically, which makes comparing two files easier. If the JSON is invalid, the tool names line, column and the cause, such as an extra comma, missing quotes or a comment, and shows the spot in an excerpt. One click jumps to the error in the input field.

Where are my data processed?

Only in your browser. Your data is not sent to any server.

The tool calculates and converts with JavaScript right on your device. Input and files are not sent to us or anyone else. You can check this yourself: load the page, disconnect from the internet, and the tool keeps working in the open tab.

No Server UploadNo sign-upRuns Offline in Tab

How it works and how to check it