File tools that never upload your files
JSON formatter and validator
Make an unreadable one-line API response readable, shrink a configuration file, or find the missing comma that breaks your JSON. The JSON is processed in your browser, so it never leaves your device — tokens and keys included.
5 free data and file results; text tools such as the JSON formatter never count. Paid plans have no usage limits.
How it works
- 1
Paste the JSON
Paste it into the box.
- 2
Choose a format
Pretty with 2 or 4 spaces, with tabs, or minified.
- 3
Copy the result
Copy it with one click; errors are shown with their position.
Why work without uploading
Clear errors
Invalid JSON shows the message with its line and column.
Four formats
2 spaces, 4 spaces, tabs or one compact line.
Safe for secrets
API keys and personal data in the JSON are not sent to any server.
Good to know
Online formatters often send what you paste to their server. API responses and configuration files tend to contain tokens, e-mail addresses and internal URLs, so formatting them locally is the safer habit.
Validation follows the JSON standard strictly: trailing commas, comments and single quotes are errors, exactly as they would be for a JSON parser in your code. The error position points to where the parser stopped, which is usually right after the real mistake.
Minify removes all spaces and line breaks for the smallest payload; pretty-printing keeps the order of keys as in the input.
Questions and answers
Does it accept comments or trailing commas?
No. Those are not valid JSON and are reported as errors.
Is the key order changed?
No, keys stay in their original order.
Is my JSON sent anywhere?
No. It is formatted in your browser.
Related tools
- Convert CSV to JSONFeed a spreadsheet export into a web app, an API or a script by turning it into JSON. Each row becomes an object keyed by the column names. The conversion runs in your browser, so the data stays on your device.
- Convert JSON to CSVGot JSON from an API or an export and need it in a spreadsheet? Each object becomes a row and each key a column, even for nested data. The conversion runs in your browser, so the JSON stays on your device.
- Decode a JWTDebugging a login or an API call? Paste a JSON Web Token to read its header and claims and see when it expires. The token is decoded in your browser and never leaves your device.
- Base64 and URL encoder and decoderDecode a Base64 string from an e-mail header or an API, encode credentials for a test, or fix a percent-encoded URL. Choose the encoding and the direction; the text is processed in your browser and never leaves your device.