Lockfile Converter
Convert package-lock.json and yarn.lock between formats by parsing the dependency graph locally. Free, instant, in-browser, no install.
Loading tool...
What is Lockfile Converter?
Lockfile Converter parses npm and yarn lockfile formats and produces equivalent output for the other format. The dependency graph is resolved locally in your browser - no npm, yarn, or pnpm installation needed.
Key Benefits
- Switch package managers without re-resolving dependencies
- Exact version preservation for reproducible installs
- No package manager installation needed
- Instant conversion with no network requests
- Lockfiles stay on your device - private and secure
Common Use Cases
- β’Migrating a project from npm to yarn or vice versa
- β’Sharing lockfile formats across teams with different preferences
- β’Preparing lockfiles for CI environments that require a specific format
- β’Understanding the structure of different lockfile formats
How to Convert a Lockfile
- Paste the lockfile: Paste your package-lock.json or yarn.lock content - the format is detected automatically.
- Review the output: The converted lockfile content appears in the output area.
- Copy and use: Copy the converted content and save it as the target lockfile name.
Key Features
- Detects npm and yarn lockfile formats automatically
- Converts package-lock.json to yarn.lock and back
- Preserves exact dependency versions for reproducible installs
- Resolved dependency graph parsed locally in the browser
- No npm, yarn, or pnpm installation needed
- 100% client-side parsing - no network requests
Frequently Asked Questions
Which lockfile formats are supported?
npm (package-lock.json) and yarn (yarn.lock) formats are detected and converted between each other.
Does the conversion resolve dependency trees?
It parses the dependency names and versions from the source lockfile and produces equivalent output. The resolved URLs are reconstructed from the registry pattern.
Is my lockfile uploaded anywhere?
No. All parsing runs locally in your browser - the lockfile content never leaves your device.
What about pnpm-lock.yaml and bun.lock?
These formats are on the roadmap. Currently npm and yarn lockfiles are supported.