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.
JSON Formatter & Validator
Format, validate, and minify JSON data with syntax highlighting and error detection
Base64 Encode/Decode
Convert text to Base64 format and decode Base64 strings
📁 More Utilities Tools
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.
Structured Log Viewer
Paste NDJSON or logs with embedded JSON. Filter by level, search, expand objects, and copy. Client-side only.
🔗 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