Formateador JSON
GratisPopularesValida, embellece y minifica JSON con la posición de los errores.
Paste JSON to have it formatted with the indentation you prefer, minified to a single line, or checked for syntax errors that point to the exact line and column. Key, depth and array counts update as you type, and nothing leaves the tab.
Cómo usar Formateador JSON
- 1Paste JSON into the input box, or drop a .json file onto the drop zone.
- 2Pick an indentation of 2 spaces, 4 spaces or tabs, and turn on Sort keys if you want stable output.
- 3Use the Minify button to strip every optional whitespace character from the document.
- 4Fix anything the validator reports — it names the line and column of the first error.
- 5Copy the formatted JSON or download it as a .json file.
Formateador JSON: preguntas frecuentes
Why is my JSON invalid?
Almost every invalid JSON error comes from a trailing comma, single quotes instead of double quotes, an unquoted key, or a comment. The validator shows the first offending line and column so you can fix it directly.
Does this JSON formatter upload my data?
No. Parsing, formatting and minifying all run in JavaScript inside your browser. No request is made and nothing is stored on a server.
What is the difference between formatting and minifying JSON?
Formatting adds indentation and line breaks so humans can read the structure. Minifying removes all optional whitespace to make the payload as small as possible for storage or transport.
Can I format a large JSON file?
Yes, up to about 2 MB of text in the editor. Much larger documents are better handled by a command-line formatter such as jq, because rendering megabytes of text in a browser tab gets slow.
¿Usas Formateador JSON a menudo?
Pro elimina todos los anuncios, aumenta los límites de archivo y añade modo por lotes y preajustes guardados en todas las herramientas.
Comparar planes →Herramientas relacionadas
JSON a CSV
Convierte arrays JSON a CSV y viceversa.
Herramientas para desarrolladoresCodificador Base64
Codifica texto o archivos a Base64 y viceversa.
Herramientas para desarrolladoresDecodificador JWT
Inspecciona la cabecera y el payload de un JWT y comprueba su caducidad.
Herramientas para desarrolladores