---
title: "Random string and password generator"
description: "Generate secure random strings or memorable local passphrases with length and character-set controls."
---

> HTML: https://trendalyzer.app/tools/random-string-password-generator/
> Index: https://trendalyzer.app/llms.txt

# Random string and password generator

A random string and password generator selects characters with rejection-sampled values from the browser's cryptographically secure random source, avoiding modulo bias. You can set the length and include lowercase letters, uppercase letters, numbers, or a compact symbol set, or switch to a hyphenated memorable phrase assembled from a bundled local word list. Generated values are never transmitted or saved by the tool, though clipboard history and the surrounding device still matter.

Readiness: experimental

Input types: length, character-set choices, phrase mode

Output types: random string, memorable phrase

## Limits

- Strings are 4 to 256 characters; memorable phrases use 3 to 12 words from a compact built-in list.

## Warnings

- Use a password manager for account credentials; do not reuse generated passwords or expose them through clipboard history.

## Worked example

Given: Length 20 with lower, upper, numbers, and symbols enabled

Result: A 20-character string drawn via crypto.getRandomValues with rejection sampling (different each run)

## Steps

1. **Set length and character sets** — Choose 4–256 characters and which of lower, upper, numbers, or symbols to include — or enable memorable phrase mode.
2. **Run locally** — Characters are drawn from the browser cryptographic RNG with rejection sampling to avoid modulo bias.
3. **Copy once into a password manager** — Store the value in a manager rather than reusing it or leaving it in clipboard history.

## Prefer unique credentials

Randomness helps only when every account receives a different value. Store generated credentials in a reputable password manager instead of a document or reused pattern. A length-20 run with all character sets enabled produces a fresh string each time.

## Phrase mode

The built-in word list is intentionally small for a lightweight utility. Increase the word count and use a full password-manager word list for high-value credentials.

## FAQ



### Is Math.random used?

No. The generator uses the browser cryptographic random source and discards biased samples.

### How long can a memorable phrase be?

Phrase mode uses 3 to 12 words from a compact built-in list. Increase the word count for higher-value credentials, or use a full password-manager word list.
