About

Sort JSON keys

Sort object keys recursively while preserving array order.

Input

Runs on your device

Result

Your result will appear here

How to use sort json keys

Set JSON. Select Run tool, then review the result. Use the download or copy controls to keep it. Reset restores the starting settings and clears the result.

JavaScript serializes integer-like object keys in numeric order. Other keys are sorted lexicographically.

Your files stay here

Inputs are processed in your browser and are not uploaded to an Everytool server. Results last until you reset or leave this page. Favorites and recently used tool names are saved only in this browser.