Dependency sections found · 5 keys reordered
- dependencies: 3 entries · moved 3
- devDependencies: 2 entries · moved 2
Sort dependencies alphabetically inside package.json, pick the indent and copy the cleaned JSON back.
Dependency sections found · 5 keys reordered
Paste the contents of a package.json file and the tool rewrites dependencies, devDependencies, peerDependencies and optionalDependencies with keys in alphabetical order, optionally sorting the top-level keys as well (name and version stay first). Choose a 2 or 4 space indent and copy the result. Everything is parsed as plain JSON in your browser — no file is uploaded and no package manager runs.
Common questions and helpful answers about this utility.