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.

Comparison runs in your browser. Manifests are not uploaded.

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

Added Apr 5, 2026

🔄 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

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

Your feedback helps us improve and create better tools for everyone