PixNudge

Sort JSON Keys Online

Sort JSON object keys alphabetically in ascending or descending order, including nested objects. Optionally sort arrays of values too.

Input
Result

How it works

  1. 1

    Paste or open your data

    Paste text, drop a file onto the editor or click Open file. Load sample shows how the tool works.

  2. 2

    Adjust the options

    The result updates as you type. Change the options to get exactly the output you need.

  3. 3

    Copy or download

    Copy the result to the clipboard or download it as a file.

Why PixNudge

Nothing is uploaded

Your data is processed in your browser and never sent to a server, so API keys, tokens and customer data stay private.

Instant, even for large files

There is no round trip to a server: results appear as you type, and files of several megabytes are handled smoothly.

Exact numbers

Long numbers such as 64-bit IDs are kept exactly as written instead of being rounded.

Frequently asked questions

Why sort JSON keys?

Sorted keys make large objects easier to read and make two JSON files much easier to compare, because the same keys appear in the same place.

Does sorting change my data?

No. Only the order of keys changes, and the order of keys in a JSON object has no meaning. Arrays keep their order unless you turn on Sort arrays of values, because the order of array items usually matters.

How are keys with numbers sorted?

Keys are sorted naturally, so item2 comes before item10. Turn on Ignore case to treat uppercase and lowercase letters the same.

More free tools