Secret Key Generator

Generate random secret keys for apps, APIs, sessions and JWT signing: 128 to 4,096 bits, as hex, Base64 or URL-safe Base64.

Free · No upload · 100% on your device

How to use Secret Key Generator

  1. Choose the settings in the side panel.
  2. The result updates instantly. Select “Generate again” for a fresh one.
  3. Copy the result or download it.

Private by design. Everything you type, open or record is processed in this browser tab and is never uploaded to KittySuite.

About Secret Key Generator

32 bytes (256 bits) suits HMAC-SHA-256 JWT secrets, Django and Rails secret keys and most session secrets. Base64 is shorter than hex for the same strength; URL-safe Base64 can go in URLs and environment variables without escaping.

Values come from the browser’s cryptographic random generator (crypto.getRandomValues) on this device. Nothing is sent or stored, so no one else ever sees them.

Secret Key Generator: frequently asked questions

How do I generate a secret key?

Choose 128, 256, 384 or 512 bits and hex, Base64 or URL-safe Base64, then copy the key.

Which size should I use for a JWT secret?

256 bits (32 bytes) suits HMAC-SHA-256 JWT secrets, Django and Rails secret keys and most session secrets.

Hex or Base64?

Base64 is shorter for the same strength; URL-safe Base64 can go in URLs and environment variables without escaping.

Is the key safe to use in production?

Values come from the browser’s cryptographic random generator (crypto.getRandomValues) on your device. Nothing is sent or stored. Store it in your secrets manager, not in your code repository.