Skip to content

JSON formatter and validator

Formats, validates and organises JSON with error detection.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · JSON formatter and validator

Runs in your browser · 100% local

Se valida con JSON.parse, sin ejecutar el contenido.

Claves4
Arrays1
Profundidad2
Caracteres112
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Paste the JSON into the input field.

02

The result is automatically validated and indented as you edit.

03

If there is an error, check the line and position indicated in the message.

Examples

Examples

API response

Turns a single line of text into a clear, easy-to-read tree structure.

Comma error

The validator highlights the position of an unauthorised final comma.

Reference guide

What you need to know

The formatter uses `JSON.parse` to validate and `JSON.stringify` to indent. It does not execute the content. You can choose the number of spaces and sort the keys alphabetically.

Frequently asked questions

Frequently Asked Questions

No. The JSON standard does not allow comments; remove them before validating.

Related tools

Other tools that can help with similar tasks.

More at Web development→
JSON formatter and validator · Free online tool · ByTooly