For an HS256 JWT secret, use at least 256 bits. Keep keys in environment variables or a secrets manager, never in your Git repository.
How to use the Secret Key Generator tool
- Choose the options.
- Press Generate. A fresh result also appears when the page opens.
- Copy what you need.
Why SaralKit?
- Free forever: no "credits", no trial, no premium tier, no watermark and no daily limit.
- No account, ever: nothing to sign up for. Just open the page and use it.
- No data stored: your files and the numbers you type are processed by your own browser. We never upload, store or see them.
- Works offline: once the page has loaded, most tools keep working without internet.
- Check it yourself: open your browser's Network tab while you use a tool. Your file is never sent.
Frequently asked questions
Is it really random?
Yes. It uses your browser's cryptographic random generator (crypto.getRandomValues), the same source used for encryption keys, and avoids the bias that a simple "random % n" adds.
Are the results really random and private?
Yes. They are made on your device with your browser's secure random generator, and nothing is sent or stored.