About 2JSON
2JSON is a free, browser-based tool for reading, formatting and checking JSON. Paste a payload and see it as an indented document or a collapsible tree in a second.
Why it exists
Developers look at JSON all day: API responses, log lines, config files, webhook bodies. Most of it arrives minified on one line, and much of it is slightly broken. 2JSON was built to make that quick to read without installing anything, and without sending possibly sensitive data to someone else's server.
What it does
- Format — indent minified JSON with two spaces so it is easy to scan.
- Remove whitespace — minify valid JSON back to a single line.
- Tree view — expand and collapse objects and arrays to explore deep structures.
- Validate — invalid JSON shows the parser's error so you can find the problem.
- Lenient formatting — text that is not strict JSON (for example, cut-off log output) is still indented as best it can be.
- Exact big numbers — large integers such as 64-bit IDs keep every digit instead of being rounded, using the lossless-json parser.
- Stats — character count, size, number of keys, nesting depth and root type.
- Light and dark themes, following your system setting by default.
Your data stays on your device
All parsing and formatting happens in JavaScript inside your browser tab. The JSON you paste is not uploaded, logged or stored on a server, and the site has no database. Closing the tab discards it. The site is served over HTTPS. See the Privacy Policy for what analytics and advertising services do collect.
How the site is funded
2JSON is free to use. To cover hosting it may show advertising from Google AdSense. Ads are kept separate from the tool and never have access to the JSON you paste.
Feedback
Found a bug or want a feature? Get in touch — suggestions for new developer tools are especially welcome.