# JSON Formatter & Validator

Validate, format and minify JSON locally with clear parse-error messages.

Canonical page: https://4g3n7.com/json-formatter/

## Method
The input is parsed using the browser JSON parser and re-serialized with either two-space indentation or no extra whitespace.

## Worked example
{"active":true,"count":3} becomes a consistently indented, multi-line document.

## Assumptions and limitations
JSON does not allow comments, trailing commas, NaN or undefined. Very large files may slow the browser.

## Privacy
Input is not uploaded or logged.
Calculation inputs and file contents are not sent to first-party analytics.

## Related tools
- [Word Counter](https://4g3n7.com/word-counter/): Count words, characters, sentences, paragraphs and estimated reading time as you type.
- [UTM Campaign URL Builder](https://4g3n7.com/utm-builder/): Build a properly encoded campaign URL with source, medium, campaign and optional UTM parameters.
