FREE · SECURITY & PRIVACY TOOLS
Shamir Secret Sharing.
Split a password, recovery phrase or key into several shares so that any chosen number of them can rebuild it, and recover it again — entirely in your browser.
Loading the calculator…
Steps to use Shamir Secret Sharing
Enter the secret, the number of shares and how many are needed, then press “Make new shares”. To recover, switch to Recover and paste enough shares.
How Shamir Secret Sharing processes your input
Shamir’s scheme over GF(256): each byte is the constant term of a random polynomial of degree k − 1 (random coefficients from the browser’s secure generator); recovery uses Lagrange interpolation at zero.
Shamir Secret Sharing: worked example
“correct horse battery staple” split into 5 shares with a threshold of 3 can be rebuilt from any 3 shares; 2 shares reveal nothing.
Split a secret into shares and rebuild it
- Enter the secret: a password, a recovery phrase or a key (up to 4,096 bytes).
- Choose how many shares to create (up to 255) and how many are needed to rebuild the secret, then create the shares.
- Give each share to a different person or keep them in different places.
- To rebuild the secret, switch to recovery mode and paste at least the required number of shares.
Example: “correct horse battery staple” split into 5 shares with a threshold of 3 can be rebuilt from any 3 shares, while 2 shares reveal nothing about it. This protects a crypto wallet phrase or a master password against both loss and theft.
How it works and what to watch
- The tool uses Shamir’s scheme over GF(256): each byte of the secret becomes the constant term of a random polynomial, with coefficients from the browser’s secure random generator. Recovery uses Lagrange interpolation.
- A damaged or mistyped share gives a wrong result without any warning. Test the recovery once, right after creating the shares.
- Everything is calculated in your browser; the secret and the shares are never uploaded.
- To create a strong secret first, use the password generator. To encrypt a whole file with a password, use the file encryptor.
Questions about Shamir Secret Sharing
Can someone with fewer shares than the threshold learn anything?
No. With fewer shares than the threshold, every possible secret is equally likely, so nothing is revealed.
What happens if I lose some shares?
You can still rebuild the secret as long as you have at least the threshold number of correct shares.
Is my secret sent anywhere?
No. Splitting and recovery run entirely in your browser.
Is Shamir Secret Sharing free, and do I need an account?
Yes. This tool is free to use in your browser without an account. Processing takes place on your device.
What are the limits and what should I check?
Up to 4,096 bytes and 255 shares. A damaged share gives a wrong result without warning: test recovery once. Everything is calculated in your browser; nothing you type is uploaded. Review the result before using it in your work.
Is my input sent to a server?
Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.