Learn
History for this tool
The most recent data you entered in this tool, stored only in this browser.
Save what you type here, in this browser? Your work would go into this browser's local storage, so a refresh or a trip to another tool does not wipe it. You also get a short list of previous entries under the form, each one restorable with a click. Nothing is ever uploaded, and there is no account.
Being straight about the trade-off: anything kept there can be read by anyone who can use this browser profile, and by any script that later runs on this site. A tool page can hold a private key, a password or a signed token. Saving is convenient; it is not private.
Saved on this device
Your inputs and history are stored locally.
Not saved
This page forgets your work when you leave it.
About this tool
Paste JSON and this validates it, pretty-prints it at the indentation you choose, or minifies it back down. The optional sort control reorders object keys at every level, ascending or descending, while leaving array order alone — which is exactly what you want when two API responses differ only in key order. Parsing uses the browser’s own JSON parser, so it fails on exactly what a real parser fails on.Questions
- Does sorting also reorder arrays?
- No, and that is deliberate. Only object keys are reordered. Array order is data, so changing it would change the meaning of the document.
- What is the difference between this and the JSON Viewer?
- This one gives you text you can copy and paste. The viewer renders a collapsible tree, which is better for finding your way around a document whose shape you do not know yet.
- Is my data uploaded anywhere?
- No. Parsing happens locally with JSON.parse and nothing leaves the browser.