Random string generator

Generate secure random strings, tokens and API keys.

  • Development
  • 100% free & unlimited
  • No sign-up
  • Runs in your browser
Random string generator

What is the random string generator?

The random string generator creates cryptographically secure strings with the browser's crypto.getRandomValues: choose the length, how many, and the characters – letters, numbers, symbols, hexadecimal, URL-safe Base64 or digits only – and add a prefix such as sk_live_.

Use them as API keys, secrets, tokens, coupon codes or test data. The entropy shown tells you how hard a string is to guess.

How to use the random string generator

  1. 1Set the length and how many strings you need.
  2. 2Choose the characters and an optional prefix.
  3. 3Press Generate and copy.

Features

Secure

Uses the Web Crypto random generator, without modulo bias.

Formats

Custom sets, hex, Base64 URL-safe or numeric.

Bulk

Up to 500 strings at once.

Entropy

The strength of the strings in bits.

Frequently asked questions

How long should an API key be?

At least 128 bits of entropy, e.g. 32 hex characters or 22 Base64 characters.

Is it truly random?

It uses the operating system's cryptographic random source through the browser.

Are the strings stored?

No, they're created on your device and never sent anywhere.