How to use the random token generator
- Pick a format and strength. 256 bits suits most secrets.
- Choose how many tokens and an optional prefix.
- Copy them, or generate again.
Choosing a format
- Hex: safe everywhere; 2 characters per byte.
- Base64 URL-safe: shorter, and safe in URLs and file names.
- UUID v4: the standard unique ID format, 122 random bits.
A prefix like sk_test_ doesn’t add security but makes keys easy to recognise in logs and code scanners.
Examples
64 hex characters
22 characters