Handy Devtools
Back to tools

JSON Formatter

Format, minify, repair, search, and inspect JSON locally.

Processed locally in your browser
204 bytes / 1 MiB
// formatted output...

About this tool

Format, validate, repair, search, and explore JSON locally. Rendered strings remain inert even when they resemble HTML or scripts.

How to use it

  1. Paste JSON or load the safe sample.
  2. Format, minify, repair, or switch to the searchable tree view.
  3. Copy only after validating and reviewing the result.

Supported actions

  • Format with two spaces, four spaces, or real tab characters; minify valid JSON; browse and search a tree view.

JSON syntax

  • Comments, trailing commas, unquoted keys, undefined, and NaN are not part of standard JSON. Repair may rewrite some of these forms, but its result must be reviewed.

Repair limitations

  • Repair is best-effort. It can fix common syntax mistakes, but may fail or alter the intended meaning—always review its output.

Privacy and limits

  • JSON is processed locally and is not retained after reload.
  • Input is limited to 1 MiB of UTF-8 data.

Frequently asked questions

Can repair change my data?

Yes. Repair is best-effort and can alter intended meaning, so always review the result.

Related developer tools