How Secret Generator works
Generate cryptographically random secret keys (hex or base64) or human-typable passwords. Presets cover common cases like a 32-byte AUTH_SECRET or a webhook signing key.
All randomness comes from crypto.getRandomValues. Encoding is done locally; no value is ever transmitted. Entropy estimates are shown for each result.
Questions
- How random are the values?
- They are drawn from the Web Crypto API's crypto.getRandomValues, the same cryptographically secure source used for production secrets.
- What encodings are supported?
- Secret keys can be output as base64url, standard base64, or hex. base64url is safe to drop directly into environment variables.
- What are the presets for?
- Quick-start buttons generate a value sized for common uses, like a 32-byte AUTH_SECRET or a hex webhook secret.
- Is anything sent to a server?
- No. Generation and encoding happen entirely in your browser. Nothing is logged or transmitted.
More Generate tools
- QR CodeURL, text, or contact card
- ShareX Config BuilderGenerate a .sxcu custom uploader
- Color PaletteHEX / RGB / HSL converter
- Regex TesterLive match highlighting
- Cron BuilderHuman-readable schedules
- Lorem IpsumParagraphs, sentences, words
- Aspect RatioCalculate and convert aspect ratios
- Markdown TableVisual editor for markdown tables
- Placeholder ImageCustom placeholder images for mockups
- Meta Tag PreviewerSee how links unfurl across platforms
- Contrast CheckerWCAG AA and AAA contrast ratio
- Favicon GeneratorEmoji, text, or image favicons
- Theme TokensThis site's color roles, live
- UUID GeneratorBulk v4 and v7 UUIDs
- Date CalculatorDays between dates, date math, time zones
- Chmod CalculatorUnix permissions: octal, symbolic, command