Skip to content
Toolbento

Secret key generator

Generate 128 to 512-bit random secret keys as hex, Base64 and Base64URL.

Everything stays on this device

Secret key generator runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Key size
Key size

32 random bytes from your browser's secure random source. The three rows are the same key, written three ways.

Secret key

  • Hex
    Making a key
  • Base64
    Making a key
  • Base64URL
    Making a key

Missing a feature or found a bug in Secret key generator? Tell me on X (@_andrewtran) or by email.

How to use Secret key generator

  1. Choose a key size. 256 bits suits most uses.
  2. Copy the key in the form your system expects.
  3. Select Generate again for a new key.

Questions and answers

Is my key sent anywhere?

No. It is made by your browser on this device and is not stored. Once you leave the page it is gone.

Which form should I use?

They are the same key. Hex is the most widely accepted, Base64 is shorter, and Base64URL is safe to put in a URL or a file name.

Is it random enough for production?

Yes. The bytes come from the same secure random source that browsers use for encryption.

Esc

Loading tools