JSON formatter and validator
Paste JSON to pretty-print it, check that it is valid, or compress it to a single line. Processing happens locally, so API responses and config files with secrets stay on your machine.
Files are processed in your browser and never uploaded.
How to use
- Paste your JSON into the input box.
- Choose the indentation and whether to sort keys.
- Click “Format” or “Minify”, then copy or download the result.
Features
- Pinpoints errors
Invalid JSON is reported with the line and column of the problem, such as a trailing comma or a missing quote.
- Sort keys
Optionally sort object keys alphabetically at every level, which makes two JSON documents easy to compare.
- Private by design
Nothing is sent to a server, so tokens and personal data in the JSON never leave your browser.
Frequently asked questions
Why is my JSON invalid?
The most common causes are a trailing comma after the last item, single quotes instead of double quotes, unquoted keys and comments. Standard JSON allows none of these.
Is my data uploaded?
No. Formatting uses your browser’s built-in JSON parser; nothing is sent anywhere.
Can it handle large files?
Files of several megabytes work fine. Very large documents depend on your device’s memory.
Are big numbers preserved?
Integers larger than 9,007,199,254,740,991 cannot be represented exactly in JavaScript and may lose precision when reformatted. Store such IDs as strings.
Related tools
- Compress images onlineReduce image file size by up to 90% in your browser. Batch compress JPG, PNG and WebP — free, no upload, no sign-up.
- Convert images to JPG, PNG or WebPConvert images between PNG, JPG and WebP for free. Also opens AVIF, GIF and BMP. Batch conversion in your browser, no upload.
- Merge PDF filesCombine multiple PDF files into one in seconds. Reorder files, merge in your browser — free, private, no upload or watermark.
- Split PDF and extract pagesSplit a PDF by page ranges or extract every page as a separate file. Free, private, works in your browser with no upload.
- Convert images to PDFTurn JPG, PNG and WebP images into a single PDF. Reorder pages, choose A4 or original size. Free, in-browser, no upload.
- QR code generatorCreate QR codes for links, text and Wi-Fi details. Custom colors, high-resolution PNG and vector SVG download. Free, no sign-up, codes never expire.