LOCKB LOCK
File conversion

Convert LOCKB to LOCK

QUICK ANSWER
Is it possible to convert LOCKB to LOCK?
Yes - LOCKB converts to LOCK.

Run bun install --save-text-lockfile --frozen-lockfile --lockfile-only with Bun 1.2 or newer; Bun reads the existing bun.lockb and writes an equivalent bun.lock, then you delete the old binary file. Resolutions and integrity data are preserved.

On this page

Tested on macOS, Windows & Linux
Last verified Sep 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert LOCKB to LOCK?

Bun 1.2 replaced the binary bun.lockb with a text-based .lock (bun.lock, a JSONC file) because binary lockfiles are impossible to review in pull requests, hard to merge, and unreadable by external tooling like Dependabot.

How to convert LOCKB to LOCK

Bun (save-text-lockfile) FREE

With Bun 1.2+, run bun install --save-text-lockfile --frozen-lockfile --lockfile-only, then delete bun.lockb. Bun generates bun.lock from the existing binary file, keeping resolutions and metadata.

Bun (plain migrate) FREE

Simply running bun install --save-text-lockfile also migrates an existing bun.lockb to bun.lock, updating dependencies at the same time.

About these formats

Quality & what to watch

  • The --frozen-lockfile --lockfile-only flags keep your resolutions unchanged; omitting them lets Bun update dependencies during the migration.
  • You must delete bun.lockb yourself afterward - Bun does not remove the old binary file automatically.
  • This requires Bun 1.2 or newer; older Bun releases cannot write the text lockfile.

Frequently asked questions

What is the difference between bun.lockb and bun.lock?
bun.lockb is the old binary lockfile; bun.lock is the newer human-readable text (JSONC) lockfile introduced in Bun 1.2.
Do I lose any data in the migration?
No. Bun reads the existing bun.lockb and preserves resolutions and metadata in bun.lock.
Does bun delete bun.lockb for me?
No, you should delete the binary file manually after the text lockfile is written.
Why did Bun switch to a text lockfile?
Binary lockfiles are hard to review, merge, and parse; text lockfiles work better with version control and tools.