Kharabeesh
On-device ع

Random String & Secret Generator

Generate secure random strings from characters you choose, hex or Base64 of N bytes, ready-made secrets for JWT, API keys, Django and Laravel, or PIN codes, with honest entropy in bits.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Choose a type: custom characters, hex, Base64 or PIN, or pick a ready-made secret preset.
  2. Set the length and how many you need.
  3. Press Generate, then copy or download the results.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

Is the randomness really secure?

Yes. It uses the browser’s crypto.getRandomValues with rejection of biased samples, so every character has exactly the same chance. Math.random is never used.

What do the bits mean?

The amount of randomness: each bit doubles the number of possibilities. 128 bits or more is plenty for any secret key.

Are the results saved?

No. They are generated in the page and disappear when you close it; nothing is sent anywhere.

Does “avoid weak PINs” reduce security?

It removes patterns like 1234, 0000 and 1212, slightly reducing the possibilities; the bits shown are computed after the removal.

Formulas & sources

Related tools