Online tool
JSON formatter and validator
Paste JSON to make it readable, check that it is valid, or shrink it to one line. Errors show the line and column.
Loading the tool…
- Paste your JSON
- Press Format or Minify
- Copy the result
- Free
- No sign-up
- Runs on your device
More text and generator tools
- Password generatorCreate a strong, random password in one click. It is made on your device with the browser’s…
- Word counterPaste or type your text to count words, characters, sentences and paragraphs, and to estimate…
- Colour converterConvert a colour between HEX, RGB and HSL, copy the values, and check whether black or white…
- QR code generatorCreate a QR code for a website, text, Wi-Fi login, e-mail or phone number and download it as PNG…
- Text case converterChange the case of any text with one click: capitals, small letters, title case, sentence case…
- Lorem ipsum generatorPlaceholder text for designs, mockups and templates: choose how many paragraphs and sentences,…
- Base64 encoder and decoderConvert text to Base64 and back. Works with accents, emoji and any language, and offers URL-safe…
- URL encoder and decoderTurn spaces and special characters into %20-style codes for web addresses, or decode them back…
About json formatter
This JSON formatter indents your JSON so that it is easy to read, checks that it is valid and reports where the first error is. Minify removes all unneeded whitespace for smaller payloads.
Your JSON is parsed by your browser and is not sent to any server, so it is safe to paste configuration and API responses.
How to format JSON
- Paste your JSONInto the box.
- Press Format or MinifyChoose the indent first.
- Copy the resultPress Copy.
Good to know
- Trailing commas, single quotes and comments are not valid JSON and are reported as errors.
Frequently asked questions
Is my JSON uploaded?
No. It is processed locally.
Why is my JSON invalid?
The usual causes are a trailing comma, single quotes instead of double quotes, or an unquoted key. The message shows the line and column.