Random String & Secret Generator
Generate secure random strings from characters you choose, hex or Base64 of N bytes, ready-made secrets for JWT, API keys, Django and Laravel, or PIN codes, with honest entropy in bits.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- Choose a type: custom characters, hex, Base64 or PIN, or pick a ready-made secret preset.
- Set the length and how many you need.
- Press Generate, then copy or download the results.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Is the randomness really secure?
Yes. It uses the browser’s crypto.getRandomValues with rejection of biased samples, so every character has exactly the same chance. Math.random is never used.
What do the bits mean?
The amount of randomness: each bit doubles the number of possibilities. 128 bits or more is plenty for any secret key.
Are the results saved?
No. They are generated in the page and disappear when you close it; nothing is sent anywhere.
Does “avoid weak PINs” reduce security?
It removes patterns like 1234, 0000 and 1212, slightly reducing the possibilities; the bits shown are computed after the removal.
Formulas & sources
Related tools
Password GeneratorGenerate strong passwords with secure, unbiased randomness: choose the length, letters and symbols, exclude look-alikes, and see their strength in bits and estimated crack time. Roughly check your own too.Passphrase GeneratorGenerate a passphrase from random words that is easy to remember and hard to guess, in English, Arabic or your own word list, with strength honestly computed in bits from the list size.UUID & nanoid GeneratorGenerate version 4 (random), 7 (time-ordered), or name-based 5 and 3 UUIDs, or short nanoid IDs, up to 1000 at a time in any format. Inspect any UUID to see its version and timestamp.Hash GeneratorCompute MD5, SHA-1, SHA-256, SHA-512 and CRC-32 hashes of any text or file, or an HMAC with a key, and compare against a published checksum to confirm a file is intact. Local, no upload.