The JSON formatter indents your content with two spaces, checks that the syntax is correct and can minify it by removing spaces and line breaks.
How to use
- Paste the JSON into the input field.
- Click Format JSON, Minify or Validate.
- Copy the result.
Frequently asked questions
How do I find out why my JSON is invalid?
When validating, the tool shows the browser's error message. Trailing commas, single quotes and unquoted keys are the most common causes.
Does minifying change the data?
It only removes spaces and line breaks. Be careful with very large numbers: above 2^53 JavaScript may lose precision.
Other tools
- UUID GeneratorGenerate UUID v4 identifiers with one click.
- Base64Encode or decode text using Base64.
- JWT DecoderView a JWT header and payload. The signature is not validated.
- Timestamp ConverterConvert Unix timestamps to date and time, and vice versa.
- Password GeneratorGenerate random passwords directly in your browser.
- HTTP Status CodesLook up common HTTP status codes.
- Merge & extract PDFMerge PDF files or extract pages.
- CPF & CNPJGenerate and validate Brazilian CPF and CNPJ for testing.
- Compress imageCompress, resize and convert images.
- Compare textsSee line-by-line differences between two texts.
- Regex testerTest JavaScript regular expressions.