JSON formatter and validator
Paste JSON and get it pretty printed, minified or key sorted. Errors are pointed out with a line and column so you can fix them fast, and JSON with comments or trailing commas is understood. Big files are fine because everything runs in your browser.
Tooloat runs in your browser and needs JavaScript. It opens in a moment, and your files are processed on your device.
How it works
- Paste or open your JSON.
- Choose beautify, minify or sort keys.
- Copy or download the result.
Why use it
- Precise error location and message.
- Indent with 2 or 4 spaces or tabs.
- Sorts keys and keeps your original tokens intact.
- Tolerates comments and trailing commas.
Questions and answers
How do I validate JSON?
Paste it in. If it is invalid, the error message shows the line and column of the problem.
Will formatting change my numbers or strings?
No. The formatter edits whitespace only, so big numbers and escapes are preserved exactly.
Is my data sent anywhere?
No. Everything is processed in your browser.
Related tools
- Convert JSON, CSV, YAML and XMLSwitch data between formats without a script.
- JWT decoder and debuggerPaste a JSON Web Token to read its header and payload, see when it expires and check the signature with a secret or public key.
- Diff checker: compare text and codePaste two versions of a document, a config file or a piece of code and see exactly what changed.
- Minify and beautify HTML, CSS and JavaScriptShrink code for production or make minified code readable again.