Random String Generator
Generate random strings.
About this tool
Generate a random string of the length you choose from one of four character sets: letters and digits, letters only, digits only, or lowercase hex. Useful for test data, temporary codes and identifiers.
How to use
How it works
Each character is drawn independently and uniformly from the chosen set using the browser's secure random source. The sets are alphanumeric (62 characters), letters (52), numbers (10) and hex (16, lowercase). The more characters in the set, the more randomness per character.
Worked example
A 12-character hex string
- Input
- Length 12, charset Hex
- Output
- f6e162810931
- Walkthrough
- 12 hex digits are 48 bits of randomness. A new string is generated on each click.
Limitations
- No symbols, uppercase-only or custom character sets.
- Length must be a whole number from 1 to 10,000.
- Not guaranteed to include every character type, which matters if you need it as a password. Use the password generator for that.
Questions
How do I generate a random string?
Is the random string secure?
Can I generate a random hex string?
Does it add special characters?
Features
- Four character sets
- 1 to 10,000 characters
- Secure random source
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
What Is A RESTful API?
Traversy Media
API context for JWT, JSON, and encoding utilities.
Watch on YouTubeTypeScript in 100 Seconds
Fireship
Typed JS snippets often get formatted or hashed nearby.
Watch on YouTube
- MDN Web Docs
MDN
Primary reference for web APIs these developer tools touch.
- Introduction to JSON Web Tokens
jwt.io
JWT structure for decoder and debugger pages.