Secret Key Generator
Generate generic random bytes on your device and copy them as Hex or Base64.
- Free
- Works Offline
- No Uploads
How to Generate a Secret Key
- Open the HTML, review Security Check, then select Continue.
- Choose 16, 24, or 32 bytes and an output encoding. Open Sample loads example settings.
- Select Generate Key. The result shows both sizes and keeps the value masked.
- Choose a presentation, then select Reveal Key or Copy Key when needed. Select Clear Key to remove the active value.
Masked Random Bytes with Exact Sizes
- Default to 32 bytes or select 16 or 24 bytes.
- See exact decoded and encoded sizes without revealing the key.
- Switch between Hex and Base64 without creating a new key.
Formats and Compatibility
| Input | Choose a byte length and encoding. Optional JSON presets hold only the requested bytes and encoding. Open Sample loads settings. |
|---|---|
| Output | Generate one key and read its decoded byte count and encoded ASCII byte count. Reveal or copy the current Hex or standard padded Base64 presentation. |
| Browser | A modern browser with local file support. |
| Scope | Generate 16, 24, or 32 bytes per operation in a secure browser context. The active key stays in the page. Optional UTF-8 JSON presets are limited to 4 KiB. |
| Operating Systems |
Local Processing Without Uploads
Use this browser-based secret key generator without uploading files. Clear Key removes the active value from the page.
Select Open Sample to see the workflow with the included example.
Hex and Base64 Presentation
Hex uses two ASCII characters per byte. Standard Base64 groups bytes and adds padding as needed. Changing presentation keeps the same key bytes.
Use the Key at the Required Size
Check the byte length and encoding required by your integration. Copy places the encoded text on your clipboard. Clear Key removes it from the page.
Frequently Asked Questions
How do I use the secret key generator offline?
Get the secret key generator download, extract the ZIP, and open SecretKeyGenerator.html. The free secret key generator includes a settings preset.
Can I use the secret key generator in browser?
Yes. The local secret key generator uses secure browser randomness on your device.
Is this an AES key generator or a source of a random API secret?
It generates generic random bytes in three supported sizes. Your integration specifies which raw byte length and encoding it accepts. Account setup and key management happen in your own system.
Does switching to Base64 change the key?
Switching the presentation reuses the same bytes and masks the new presentation.
What happens after I copy or clear?
Copy places the selected representation on your clipboard. Clear Key clears the active key and display inside the tool. Clipboard contents are managed by your device.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.