Package.json and Lockfile Diff
Compare two package.json files with a dependency-focused, semver-aware summary, or two package-lock.json files (npm v2/v3). Full structural and line diff included. Runs in your browser.
Tabs overview
- Dependency summary or Lock versions — high-signal tables for manifest-specific changes.
- Structural JSON — same path-level diff as the JSON Diff tool.
- Line diff — pretty-printed JSON with sorted keys.
For pure JSON without package semantics, use JSON Diff. For single version strings, see the SemVer Comparator.
Frequently asked questions
Does this support yarn.lock or pnpm-lock.yaml?
No. Lockfile mode targets npm package-lock.json with lockfileVersion 2 or 3. Use the structural JSON tabs after converting or paste comparable JSON if you have another format.
How are semver ranges handled?
When both sides are exact semver versions or coerce to versions, we label major/minor/patch changes. Ranges, workspaces, git, and file specifiers appear as non-semver changes with raw before/after strings.
⭐ Rate this tool
Your feedback helps us improve
🔄 Workflow Suggestion
Try combining multiple tools for a complete workflow. For example: Notepad → Text Encryption → Save to Cloud or Date Calculator → Calendar → Countdown Timer
Related Tools & Recommendations
💡 You might also need
JSON Diff
Compare two JSON documents with structural path diff and formatted line diff. Client-side only.
SemVer Comparator
Compare two semantic versions and check if a version satisfies a range (e.g. ^1.2.0). Free online version compare for developers.
JSON Formatter & Validator
Format, validate, and minify JSON data with syntax highlighting and error detection
📁 More Utilities Tools
JSON Viewer
Inspect JSON in an interactive tree. Expand and collapse nodes, copy paths, and view formatted JSON.
JSON Diff
Compare two JSON documents with structural path diff and formatted line diff. Client-side only.
EditorConfig Generator
Generate a starter .editorconfig with indent, EOL, charset, and language presets. Copy-ready.
🔗 Additional Related Tools
Send Feedback
We'd love to hear your thoughts! Your feedback helps us improve our tools and create a better experience for everyone.
Share Your Experience
Tell us what you think about this tool