All tools in this category Full tool catalog

In-browser tool

Secure random hex generator

Generate random hex for identifiers, salts, nonces, and token-like values. 32 bytes produces 64 hex characters, matching common `openssl rand -hex 32` usage.

  • Updated: 2026-04-30
  • Random bytes are generated locally with the browser Crypto API.
Generated hex will appear here.

Privacy And Limitations

Random bytes are generated locally with the browser Crypto API.

  • Token security depends on sufficient length and safe storage, not just random generation.
  • Do not expose secret tokens in URLs, logs, screenshots, or client-side source code.
  • For production authentication tokens, prefer server-side generation and storage policies.

FAQ

How many random bytes do I need?

For many token-like values, 16 bytes is a reasonable baseline and 32 bytes is stronger. Match length to your threat model.

Is this equivalent to `openssl rand -hex 32`?

For output length and intent, yes: 32 random bytes become 64 hex characters. This page generates values in the browser instead of the OpenSSL CLI.

Is random hex the same as UUID?

No. A UUID has a specific format and version bits. Random hex is raw random bytes represented as hexadecimal text.

Is hex output case-sensitive?

Hex values are byte-equivalent regardless of case, but integrations may enforce formatting conventions such as lowercase only.

Can I use random hex as an API key directly?

You can generate candidate values here, but production API keys should be issued, stored, rotated, and revoked by backend systems.

Why choose 32 bytes (64 hex chars) over 16 bytes?

Longer random values increase entropy and brute-force resistance, which is helpful for higher-risk tokens or long-lived secrets.