HomeCryptographically Secure PRNG

Cryptographically Secure PRNG

Cryptographically secure PRNG using Web Crypto API with bytes, integers, passwords and multiple encodings for keys, tokens and OTP secrets

Generate

Suggested: 16 bytes (128-bit), 32 bytes (256-bit)

Batch generate

Quick presets

Documentation

This tool generates cryptographically secure random values using the browser Web Crypto API, including bytes, integers, and passwords.

Key Features

  • Random bytes, integers, and password generation
  • Output formats: Hex/Base64/Base64URL/Base32/Binary
  • Batch generation with per-item copy
  • Built-in presets for common security use cases

Steps

  1. Select random value type.
  2. Configure length/range/charset options.
  3. Generate and inspect output.
  4. Copy single result or batch results.

Use Cases

  • API key/session token/OTP secret generation
  • Randomized test data
  • Security feature integration testing

Notes

  • Prefer Web Crypto randomness for security-sensitive scenarios.
  • Avoid Math.random() for secret/token generation.
  • Align password rules with your security policy.