Sort JSON Keys
Pretty-print JSON with object keys sorted.
How to use Sort JSON Keys
Sort JSON Keys — Pretty-print JSON and sort object keys so two payloads are easier to compare. Free to use in D2i DevTools — no account required.
Steps
- Fill in JSON. This field is required.
- Click Run and copy the result under the form.
Frequently asked questions
What is Sort JSON Keys used for?
Use it before a diff when the same object was serialized with keys in a different order.
How do I use the free online Sort JSON Keys tool?
Fill in JSON. This field is required. Click Run and copy the result under the form.
What can I paste or upload into Sort JSON Keys?
Paste one JSON value. Arrays keep their order. Only object keys are sorted.
What output does Sort JSON Keys give me?
Indented JSON, plus a tree you can expand. Nested objects are sorted at every level.
Is Sort JSON Keys free, and is my input private?
Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.
Does sorting change array order?
No. Arrays stay in the order you pasted. Only the keys inside objects are reordered.
Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.