Random Hex

Random Hex is a free online tool that generates cryptographically strong random hex credentials using your browser's hardware-backed CSPRNG. It supports Plain Text, Hex, Base64, PIN inputs and outputs using Web Crypto crypto.getRandomValues() CSPRNG with live previews and instant export. All processing runs locally inside your browser tab with zero server uploads, no sign-up, and full offline support, plus direct AI agent access via the password_generate MCP tool.

Formats: Plain Text, Hex, Base64, PIN

Available in MCP: password_generate

How to use Random Hex

  1. Choose length, character sets, word count, or encoding format in Random Hex.
  2. Inspect the calculated entropy bits and strength indicator in real time.
  3. Copy the generated secret to your clipboard locally with zero network transmission.

FAQ

Why is Web Crypto getRandomValues() required for Random Hex?
Unlike Math.random(), crypto.getRandomValues() pulls from your OS entropy pool and avoids modulo bias via rejection sampling.
Are generated passwords or API secrets ever logged or sent over the network?
Never. Generation occurs strictly inside browser memory and disappears when you close the tab.
Can I generate batch secrets or hex/Base64 keys?
Yes. You can adjust bit lengths and generate multiple cryptographically random tokens at once.