Saltar al contenido

Free JSON prettifier, validator and minifier

Make JSON readable, find what’s wrong with it, compare two versions, or shrink it to one line. Paste JSON, or open or drop a file or a whole folder: every change is checked with the exact line and column of any error, and an editable tree lets you open objects and arrays and change keys and values in place. Everything runs in your browser.

How to use

  1. Paste, open or drop JSON

    The page opens with an example. Paste your own JSON, choose a folder or file, or drop one onto the Preview. A folder lists all its JSON files. Files up to 50 MB are read on your device.

  2. Edit, minify and check

    In Edit mode the JSON shows as an editable, coloured tree or as plain text, prettified with 2 spaces, 4 spaces or tabs; Minify puts it on one line. Sort keys A–Z orders object keys. The check box confirms valid JSON or names the line and column of the first error, and Go to error jumps there.

  3. Compare, find and save

    Compare lists every difference between JSON A and B. Find searches keys and values. Save an opened file straight back, Save a copy as a new file, or copy the result.

Example

Paste {"id":12345678901234567890,"tags":["a","b",]} and the check reports the trailing comma on line 1. Remove it and the tree appears, with the JSON spread over lines with 2-space indents, and the id keeps all 20 digits instead of being rounded.

Good to know

Formatting changes only spaces and line breaks, so numbers, escapes and key order stay as written unless you sort keys. JSON with comments, single quotes or trailing commas is reported as an error with an explanation. Nothing is uploaded.

Embellece, comprueba y explora JSON

La página se abre con un ejemplo para probar. Pegue su propio JSON, suelte un archivo .json o una carpeta completa en la Vista previa, o elija uno y se formateará de inmediato. Un archivo que abrió se puede guardar directamente en su computadora. Elija Editar o Comparar en la parte superior, en JSON Prettifier. En Editar, Ver muestra el JSON como un árbol, como texto sin formato (adornado con 2 espacios, 4 espacios o tabulaciones) o minimizado en una línea, todos coloreados de la misma manera; Clasificar claves A – Z ordena las claves de objetos en todos los niveles. La línea en la parte inferior verifica cada cambio y nombra la línea y columna exacta de un error. El JSON se abre como un árbol editable: haga doble clic en una clave o valor para cambiarlo, agregue, arrastre o elimine filas y deshaga cualquier edición. La barra de búsqueda busca claves y valores, y aparece un icono de copia junto a las filas que seleccione. Comparar muestra dos documentos JSON uno al lado del otro y enumera todas las diferencias. Guarde el archivo, guarde una copia o copie el resultado. Todo se ejecuta en tu navegador; no se sube nada.

Tu privacidad

Gratis, sin registro. El procesamiento de archivos permanece en su dispositivo; Los análisis y la publicidad del sitio web tienen opciones de privacidad independientes.