Random String Generator
Generate random strings and tokens with custom alphabets, prefixes, grouping and batch output.
How to use
- Choose a preset or select character sets for your random string generator. Hex and Base64url select alphabets, not encodings of input data.
- Set a body length of 1–4096 and a count of 1–1000. The API key generator preset adds an optional sk_ prefix to a fixed-length random body.
- Apply exclusions, required sets or dash grouping. Required sets reserve one position each, even if they overlap; the entropy shown becomes an upper bound.
- Regenerate, copy one result, or copy/download the batch with your chosen separator. This secret key generator keeps all text in memory; prefixes and dashes add no entropy.
FAQ
How is this different from password and unique ID generators?
This tool creates flexible character strings and token-shaped values. Password Generator adds passphrases and strength analysis; Unique ID Generator supports structured formats such as ULID, NanoID and ObjectId. Random strings are not guaranteed unique.
Does the API key generator create working service credentials?
No. The prefix is literal text, not registration with a service. Use generated values for your own token formats; third-party API credentials must be issued by that provider.
How does the random token generator avoid modulo bias?
Web Crypto supplies random integers. Rejection sampling discards the incomplete bucket before selecting a character. Requiring each set reserves a random character per set and shuffles the body; all valid strings are not equally likely, so displayed entropy is only an upper bound in that mode.
Are generated secrets or custom characters stored or uploaded?
No. Only numeric and toggle options are saved locally. Custom characters, exclusions, prefixes and generated strings stay in memory. Copying or downloading exports only what you request; generation makes no network calls.