Saltar al contenido

Formateador y validador JSON

Formatea, minimiza y valida JSON con mensajes de error claros. Todo se ejecuta en tu navegador.

Esta página aún no está totalmente disponible en Español. Se muestra el contenido en inglés.

Se ejecuta en tu navegador. No se sube nada.

Paste JSON to validate it, pretty-print it with your preferred indentation, or minify it. Errors are reported with the line and column where parsing failed. Everything runs locally.

Cómo funciona

The tool parses your input with the browser's strict JSON parser. If it is valid you can format it with 2 or 4 spaces or a tab, minify it, or sort object keys alphabetically. If it is invalid, the message shows the position of the first error.

Ejemplos

  • {"name":"MyUtils","tools":[1,2,3]} becomes an indented, readable structure.
  • Trailing commas and single quotes are not valid JSON and are reported as errors.

Preguntas frecuentes

Is my JSON sent to a server?

No. Parsing and formatting happen in your browser.

Why does my JSON fail validation?

Common causes are trailing commas, single-quoted strings, unquoted keys and comments, none of which are allowed in JSON.

What does minify do?

It removes all unnecessary whitespace to make the JSON as small as possible.

Última actualización: