Random String Generator
Generate random strings, tokens and API keys in hex, Base64URL or custom alphabets.
About the Random String Generator
The Random String Generator creates tokens, API keys, salts and IDs from the browser's cryptographically secure random source, in hex, Base64URL or any alphabet you define.
Everything is generated in your browser; nothing you enter is uploaded, and anything random comes from a cryptographically secure source.
How to use the Random String Generator
- Choose the length and the alphabet (hex, Base64URL, alphanumeric or custom).
- Set how many strings to generate.
- Copy the results.
Frequently asked questions
How long should an API key be?
At least 128 bits of randomness: 32 hex characters or 22 Base64URL characters.
Is Math.random() used?
No. Values come from crypto.getRandomValues, which is suitable for security purposes.
Related tools
Email Signature Generator
Create a professional email signature from ready-made templates, or paste your own HTML. Copy it into Gmail, Outlook or Apple Mail, or download the HTML.
Password Generator
Generate strong, cryptographically secure passwords with custom length, character sets and strength meter.
UUID Generator
Generate UUID v4 and time-ordered UUID v7 identifiers in bulk, with formatting options.
Large CSV Generator
Generate up to 1,000 rows of realistic sample data — names, emails, phones, companies, addresses — and download as CSV or Excel (.xlsx).
QR Code Generator
Create QR codes for websites and text. Custom size and colours, error correction, live preview, and PNG or SVG download.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes and HMACs of any text.