JSON Formatter

Paste your JSON below, then format it with proper indentation or minify it down to a single line. Invalid JSON is flagged clearly so you can find the problem. Everything runs in your browser; nothing is sent to a server.

About formatting and minifying JSON

Formatting adds consistent indentation so nested objects and arrays are easy to read. Minifying strips all unnecessary whitespace, producing the smallest possible payload — useful when you're pasting JSON into a config file or API request.

About this tool

This tool formats messy, minified or hand-typed JSON into clean, readable, indented output — or strips it down to the smallest possible size. Useful for debugging an API response, cleaning up a config file, or making JSON readable before sharing it with a teammate.

How to use it

  1. Paste your JSON into the input box.
  2. Click "Format" for indented, readable output, or "Minify" for the smallest possible size.
  3. Click "Copy" to copy the result to your clipboard.

Frequently asked questions

What happens if my JSON has a syntax error?

The tool shows an error indicating the JSON couldn't be parsed, so you can spot and fix typos like a missing comma or unmatched bracket before using it elsewhere.

Is there a size limit on the JSON I can format?

No hard limit — very large JSON documents may take a moment longer since everything processes in your browser, but there's no artificial cap.

Is my JSON data uploaded anywhere?

No — formatting and minifying happen entirely in your browser; your data is never sent to a server.