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