JSON Formatter

Input
Output

JSON Formatter and Beautifier

Paste messy or minified JSON and Bracely turns it into neatly indented, readable JSON in an instant. It checks the syntax as it goes, so you see straight away if something is wrong and exactly where.

How do I use the JSON Formatter?

  1. Paste JSON into the Input box, open a file, drop one on the page, or load it from a URL.
  2. Pick 2 spaces, 4 spaces or tabs for the indent.
  3. Copy the formatted JSON or save it to a file. Press Ctrl+Enter to run again.

What does the JSON Formatter do?

  • Syntax checking with the line and column of the first error
  • Collapsible code with bracket matching and code folding
  • Handles large files in a background worker so the page stays responsive
  • One click to Repair broken JSON, or switch to Tree view, Minify or Sort keys
  • Works offline once loaded and can be installed as an app

Frequently asked questions

Is this JSON formatter free?
Yes. Every tool in Bracely is free, with no sign-up and no limits.
Is my JSON uploaded anywhere?
No. Formatting happens in your browser on your own device. Nothing is sent to a server, so it is safe for API responses, logs and config with private data.
Can it fix invalid JSON?
The formatter shows you where the problem is. The Repair tool goes further and fixes comments, single quotes, unquoted keys, trailing commas, Python values and cut-off endings.

More JSON tools

Bracely has 108 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram