Embed Widget

Add a password generator to any website with a single <script> tag. Generates passwords entirely in the visitor's browser — no data leaves their device.

Live Demo

Basic Usage

<div data-pwgen-widget></div>
<script src="https://pwgen.de/widget.js" defer></script>

Configuration Attributes

Attribute Values Default
data-pwgen-type classic · passphrase · pin · pronounceable · token classic
data-pwgen-length integer 16
data-pwgen-theme light · dark · auto auto
data-pwgen-lang de · en de

Advanced Example

<!-- Passphrase, dark theme, 6 words, German wordlist -->
<div
  data-pwgen-widget
  data-pwgen-type="passphrase"
  data-pwgen-length="6"
  data-pwgen-theme="dark"
  data-pwgen-lang="de"
></div>
<script src="https://pwgen.de/widget.js" defer></script>
Privacy by design. The widget uses crypto.getRandomValues() to generate passwords entirely in the visitor's browser. No data is sent to pwgen.de or any server.