JSON Formatter
Pretty-print or minify JSON in your browser.
Stays on this deviceYour JSON is processed locally in your browser and is not uploaded to our servers.
How to use
- Paste or type JSON into the input field.
- Choose Format for indented output or Minify for a compact string.
- Copy the result. Nothing leaves your browser.
Example
{ "name": "sconehead", "private": true }JSON Formatter
Paste JSON on the left and format it into readable indented output, or minify it into a compact single line. Parsing uses the built-in JSON.parse API, so invalid JSON is rejected with a clear error.
FAQ
- Is my JSON uploaded?
- No. Formatting runs entirely in your browser.
- Does this validate JSON?
- Invalid JSON cannot be formatted. For a dedicated validation message, use JSON Validator.
- What indentation is used?
- Formatted output uses 2-space indentation.