Random String Generator
Make secure random strings, NanoID-style IDs, hex or Base64 secret keys and numeric PINs, many at once.
Runs in your browser. Nothing leaves this device.
How to use Random String Generator
- 1Pick a random string, NanoID, secret key or PIN.
- 2Set the length, the characters and how many you need.
- 3Copy them all or download them as a text file.
Questions
How random are they?
Every character comes from your browser’s cryptographic random number generator, the same one used for encryption keys. Each character of the set is equally likely.
Which secret length should I use?
256 bits is a common choice for API keys and signing secrets. 128 bits is already far beyond guessing.
What is a NanoID?
A short, URL-safe ID made from 64 characters. The default 21 characters give about 126 bits of randomness, similar to a UUID.
Are the strings saved or sent anywhere?
No. They are made in your browser and disappear when you leave the page.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- SecurityEXIF RemoverRemove location, camera and other hidden data from JPEG, PNG and WebP photos before you share them, without touching image quality.
- SecurityPassword GeneratorStrong random passwords and passphrases, with an honest strength estimate.
- SecurityEncrypt FileLock any file with a password using AES-256, and unlock it again. The locked .enc file is safe to email or store; only the password opens it.
- SecurityEncrypt TextLock a message with a password using AES-256, and unlock it again. Share the locked text anywhere; only the password opens it.
- SecurityJWT GeneratorWrite the claims, pick HS256, RS256, PS256, ES256 or EdDSA, and get a signed JSON Web Token to copy.
- SecurityPassphrase GeneratorMake a strong, easy to type passphrase from random words.