Password and key generator

A strong password, token or Django SECRET_KEY in one click.

  • No sign-up
  • Values are created in the browser; the server does not see them
  • Free

The alphabet is the same as in django-admin startproject. Copy it as a ready line for settings.py or .env; the value has no quotes or backslashes.

Common questions

Where is the password or key created?

In your browser, using the built-in cryptographic generator crypto.getRandomValues. Values are not sent to the server and are not stored anywhere. After you close the page they cannot be recovered.

Is the key suitable for Django SECRET_KEY?

Yes. The character set is the same as in get_random_secret_key(), and you can choose the length: 50, 64 or 128. The "settings.py" and ".env" buttons copy a ready line like SECRET_KEY = '...'. Do not keep the key in a repository; put it in an environment variable.

How long should a password be?

For ordinary accounts, 16 characters from mixed sets are enough. For a password manager master password and encryption keys, use 24 or more. The strength estimate in bits is shown under the result.

What is the difference between urlsafe and hex?

Both formats are random. Hex consists only of digits and the letters a-f, and is longer for the same number of bytes. Urlsafe is shorter and safe for addresses and headers; it contains "-" and "_". For API tokens and signatures people usually take 32 bytes.

Need your own service or changes to an existing one?

We build tools around your processes: CRM, accounting, programs and apps. Free estimate.