JSON Formatter and Validator
Format, validate and beautify JSON.
- No uploads
- No account
- No ads
- No watermarks
- Free forever
Network check starts when you add a file or change something in the tool
Blocks every fetch, XHR and beacon request this page makes and switches Google Analytics off, on tool pages, for this session.Requests this page makes are counted from then on; page-load requests are left out.
How this works / check it yourself
From the moment you add a file or change something in the tool, this badge lists the requests this page makes. It reads the browser's own list of requests (Resource Timing), which shows a request once it finishes, and watches every fetch, XHR and beacon call. Downloads, such as this site's PDF and OCR engines or an AI model from Hugging Face, are listed apart from requests that carry data out.
This page cannot see requests made inside background workers (such as the PDF engine pdf.js and Tesseract OCR), WebSocket and EventSource connections, form submissions, link pings or the site's service worker, so they are not counted here, and offline mode cannot block them. A request is listed once it finishes. Your browser's Network tab shows everything.
Offline mode blocks the fetch, XHR and beacon calls this page makes. A part of the site that set up its connection before the page finished loading, such as sign-in, is not blocked; if it sends anything, the badge counts it as sent.
- Open your browser's developer tools (F12, or Cmd+Option+I on a Mac) and choose the Network tab.
- Add your file, run the tool and look for any request that uploads it. Requests made by workers are listed there too.
- For the strongest test, turn Wi-Fi off once the page has loaded and run the tool again: tools that need no download still work.
More tools in Developer Tools
All Developer ToolsAbout JSON Formatter
Paste JSON to check that it is valid and format it with 2-space or 4-space indents, or minify it to a single line. Invalid JSON shows the parser's error message instead. Formatting runs in your browser with the built-in JSON parser, so your data is not uploaded. Copy the result or download a .json file.
How to use JSON Formatter
- Paste your JSON into the box.
- Choose 2 spaces, 4 spaces or Minify.
- Copy the formatted JSON or download formatted.json.
Limits: Strict JSON only: no comments, trailing commas or single quotes. Keys are not sorted. Whole numbers above 9,007,199,254,740,991 lose precision.
Frequently asked questions
How do I validate JSON?
Paste it into the box. Valid JSON shows a green "Valid JSON" note and the formatted result. Invalid JSON shows the parser's error message, which in many browsers names the position of the problem.
Why is my JSON invalid?
Common causes are a trailing comma, single quotes instead of double quotes, keys without quotes, or comments. JSON allows none of these. Fix the spot the error points to and the result updates at once.
How do I minify JSON?
Choose Minify. All spaces and line breaks between values are removed, giving one compact line. Spaces inside strings are kept.
Does formatting change my data?
Values stay the same, with two exceptions. If a key appears twice in one object, only the last value is kept. Whole numbers above 9,007,199,254,740,991 lose precision, because the browser stores numbers as 64-bit floats.
Is my JSON sent to a server?
No. Parsing and formatting run in your browser with its built-in JSON parser. Your data is not uploaded.