Generators
Random String Generator
Generate random strings - hex, base64, alphanumeric, custom alphabet.
Output
dee942ed3799d5e1ccfe3239cd933686
Options
About this tool
Pick a format (hex, base64-url, alphanumeric, lowercase, custom alphabet), a length, and the number of strings to produce. Backed by window.crypto.getRandomValues so output is suitable for API keys, salts, and tokens.
FAQs
Is this safe for API keys / secrets?
Yes - random bytes come from the browser's CSPRNG (Web Crypto), the same source recommended for tokens and salts.
What's the difference between base64 and base64-url?
Base64-url uses '-' and '_' instead of '+' and '/' so the string is safe in URLs and filenames.
How many bytes of entropy do I need?
16 bytes (128 bits) is enough for almost everything. 32 bytes (256 bits) for cryptographic keys.