Free online JSON viewer, formatter & validator
Paste JSON into the editor to check that it's valid, format it so it's easy to read, and explore it as a tree you can collapse and search. If JSON from a log, a config file or an API response won't parse, Repair fixes the most common mistakes for you.
-
Private by design
Parsing, formatting and repairing all happen in your browser. Your JSON is never uploaded to a server.
-
Tree view with search
Expand and collapse nodes, search keys and values, and copy the path to any value, like
$.users[0].email. -
Clear error messages
See the exact line and column of a syntax error, explained in plain English, with the line highlighted in the editor.
-
Repair broken JSON
Fixes trailing commas, comments, single quotes, unquoted keys, Python
True/None, missing brackets and more. -
Fast with large files
The tree loads branches only as you open them, so multi-megabyte files stay responsive. Formatting keeps large numbers exact.
-
Works on any device
Designed for phones and tablets as well as desktops, with a dark mode and large touch targets.
How to use it
- Add your JSON: paste it, type it, drop a file onto the page, open a file, or load it from a URL.
- Check it: the status bar shows straight away whether it's valid. If it isn't, select Go to error or Repair.
- Explore it: use Format or Minify, browse the tree, and select any node to see its path and copy its value.
Frequently asked questions
Is my JSON data safe?
Yes. The tool runs entirely in your browser, and nothing you paste is sent to a server. The only time it makes a network request is when you choose Load from URL, and that request goes straight from your browser to the address you enter.
What is JSON?
JSON (JavaScript Object Notation) is a lightweight text format for structured data. It's built from objects ({"key": value}), arrays ([1, 2, 3]), strings, numbers, booleans and null. It's the most common format for web APIs and configuration files.
Why is my JSON invalid?
The most common causes are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, comments, and missing commas or brackets. The validator shows exactly where the problem is, and Repair can fix most of these automatically.
Does formatting change my numbers?
No. Format and Minify work on the original text, so very large integers such as IDs and precise decimals are kept exactly as written.
Can I load JSON from an API URL?
Yes. Select URL and enter the address. The server has to allow cross-origin requests (CORS). If it doesn't, download the file and open it here instead.