Formatador JSON
GrátisPopularesValide, embeleze e minifique JSON com a posição dos erros.
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.
Como usar Formatador 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.
Perguntas frequentes: Formatador JSON
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.
Usa Formatador JSON com frequência?
O Pro remove todos os anúncios, aumenta os limites de arquivo e adiciona modo em lote e predefinições salvas em todas as ferramentas.
Comparar planos →