Skip to content

Sort JSON Keys

Sort object keys recursively while preserving array order and values.

Input

25 chars1 lines

Result

Type or paste on the left — the result updates as you type.

Uses Unicode code-unit order, including numeric-looking keys. Maximum nesting depth 80; numbers use JavaScript precision.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: