Skip to main content

// tool

UUID and Secret Generator

Cryptographically secure random identifiers and secrets, generated in your browser.

Cryptographically secure identifiers and secrets, generated in your browser.

UUID v4

random

UUID v7

time-ordered

Hex 32

16 bytes

Hex 64

32 bytes

Base64 32

24 bytes raw

Kube Secret

base64 of 32 bytes

Which format do I pick?

  • UUID v4: random 128-bit identifier. Great for record IDs where order doesn't matter.
  • UUID v7: timestamp-prefixed, so IDs sort chronologically. Better for database primary keys because it avoids the index fragmentation that v4 causes.
  • Hex 32 / 64: raw hex tokens. Good for opaque API tokens or request IDs. 32 hex chars = 128 bits, 64 hex chars = 256 bits.
  • Base64 32: URL-safe-ish token, 24 random bytes → 32 base64 chars. Fits well in cookies and query strings.
  • Kube Secret: base64-encoded 32 random bytes, ready to paste into a Secret manifest's data: field.

Security note

All values are generated locally with crypto.getRandomValues. Nothing is sent to a server. If your threat model requires hardware-backed randomness (HSM), don't use a browser tool for that.

Sponsored
Carbon Ads