Local StudioSECURITY TOOLS

Secure Random Generator

Generate random bytes with your browser’s cryptographic random generator. Switch between hex and Base64 to view the same bytes.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
Secure Random Generator showing 32 bytes in hex with copy, encoded text and raw download actions.
Generate a byte count, choose an encoding, and copy or download the exact generated bytes.

How to Generate Secure Random Bytes

  1. Open the HTML, review Security Check, then select Continue.
  2. Enter a whole-number byte count and choose Hex or Base64. Open Sample generates 32 fresh bytes in hex.
  3. Select Generate Random Bytes. Read the byte and character counts above the result.
  4. Change the encoding to show the same bytes in the other format. Copy the selected text or download its text or raw binary.
  5. Clear Result removes it from the workbench. Clipboard and download copies are managed by your device.

Secure Random Generator Features

  • Enter a byte count from 1 to 262,144 and select Hex or Base64.
  • Generate secure random bytes using the browser’s native Web Crypto. Switch the encoding without generating another value.
  • Copy the current encoding or download its text or raw binary. Clear Result removes the displayed value and working bytes.

Formats and Compatibility

InputA whole-number byte count from 1 to 262,144 and a Hex or Base64 display setting.
OutputLowercase hex or standard padded Base64 text. An optional .bin download contains the exact raw bytes.
BrowserA modern browser with local file support.
Scope1 to 262,144 bytes per generation. Hex, standard padded Base64, and optional raw binary download. Requires a secure browser context with native Web Crypto.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

This free, browser-based tool uses local Web Crypto with no upload. Explicit copies and downloads remain under your device’s control.

Select Open Sample to see the workflow with the included example.

Hex, Base64, and Raw Bytes

Hex uses two lowercase digits per byte. Standard Base64 uses padding when required. Raw binary uses one stored byte for every generated byte.

View, Copy, or Download the Result

Switch encodings to view the same generated data. Copy or download the active encoding, or download raw bytes. Select Clear Result when you are finished.

Frequently Asked Questions

Can I use this cryptographic random generator offline?

Yes. Use the cryptographic random generator download, extract the Tool ZIP, and open SecureRandomGenerator.html in a secure browser with Web Crypto.

How does this local cryptographic random generator work?

This CSPRNG generator uses the browser’s native getRandomValues function in bounded batches to produce the requested number of secure random bytes.

Can I use a cryptographic random generator without uploading files?

Yes. Use the free cryptographic random generator in browser mode or from the extracted HTML. Processing stays on your device.

Can I use it as a random hex generator?

Yes. Hex is the default view. It shows two lowercase characters for every generated byte. Select Base64 to view the same bytes in standard padded Base64.

What happens when I clear or regenerate?

The displayed value and working bytes are cleared. An explicit clipboard copy or download stays under your device’s control.

What byte counts can I request?

Enter a whole number from 1 to 262,144. A secure browser with native Web Crypto is required.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.