Skip to main content

Random String Generator

Generate cryptographically secure random strings, tokens, and API keys.

randomtokenapi-keygenerate
Read the guide
Shortcuts:⌘ KSearch
Custom charset

Frequently Asked Questions

What does 'URL-safe only' actually change?

It switches the charset to `A-Z`, `a-z`, `0-9`, `-`, and `_`. When that box is on, the regular uppercase/lowercase/number/symbol mix is effectively bypassed.

Why does the UUID preset ignore my length slider?

Because the UUID preset stops using the custom charset path and calls `crypto.randomUUID()` directly. A UUID v4 is always generated in its standard 36-character hyphenated form.

How many strings can I generate in one batch?

Up to 100. The count input is clamped so extreme values don't create an unlimited output.

Are these strings using `Math.random()`?

No. Custom strings use `crypto.getRandomValues`, and the UUID preset uses `crypto.randomUUID()`, so the randomness comes from the browser crypto API.

Can I use this to make a numeric PIN?

Yes. The PIN preset switches to digits only and sets the default length to 6, but you can also build your own digits-only preset by unchecking the other character sets.

Related Tools