PwdGen← Random Password Generator

Developer tools

PwdGen Developer API and Local CLI

Use the local SDK and CLI for real credentials, or call the rate-limited public API for disposable test data.

Recommended: generate locally

The SDK and CLI use Web Crypto on your device and never call PwdGen. Use this path for real credentials and application secrets.

npm install --global pwdgen-cli
pwdgen generate --mode password --length 20 --count 5 --symbols

Node.js

import { generate } from 'pwdgen-cli';

const password = generate({ mode: 'password', length: 20, symbols: true });

Open-source core: pwdgen-core

pwdgen-core is a dependency-free ESM reference package for the shared Web Crypto generation model. The GitHub source and npm package are public.

View source on GitHub · View package on npm

Install from npm

npm install pwdgen-core

ESM

import { PwdGenCore } from 'pwdgen-core';

const pwdgen = new PwdGenCore();
const password = pwdgen.generate({ length: 24, symbols: true });
const entropy = pwdgen.entropyBits({ length: 24, symbols: true });

Public demo API

The API returns values through a Vercel Function over TLS. It is intended for examples, fixtures, and disposable test data—not production secrets.

Never send an existing password, API key, seed phrase, or secret to this endpoint.

curl

curl 'https://pwdgen.xyz/api/v1/random?mode=password&length=20&count=1&symbols=true'

Python

import requests

result = requests.get(
    'https://pwdgen.xyz/api/v1/random',
    params={'mode': 'hex', 'length': 32}
).json()

Supported API parameters

ParameterValues
modepassword, passphrase, hex, base64url
count1–20
length8–128 (password), 16–128 (hex/base64url)
words3–8
separatorhyphen, space, underscore, dot

Local browser utilities

These reviewed tools run in the browser for common developer encoding, hashing, identifier, and random-choice workflows.

  • UUID v4 GeneratorGenerate RFC 4122 version 4 UUIDs locally with the browser Web Crypto API.
  • Base64 Encoder / DecoderEncode and decode Unicode text to Base64 locally without sending the input to a server.
  • SHA-256 Hash CalculatorCalculate a SHA-256 text digest locally with SubtleCrypto and copy the hexadecimal result.
  • URL Encoder / DecoderEncode and decode URL components locally for query strings, redirect parameters, and API examples.
  • Random Number PickerPick fair random integers in a chosen range using Web Crypto rejection sampling.
  • Coin FlipperFlip a fair virtual coin locally with Web Crypto randomness and a lightweight Canvas animation.

PWA and Chrome extension

PwdGen can be installed as a PWA from the browser. A minimal Chrome extension package is prepared for Chrome Web Store review and runs offline without external scripts.

Workflow distribution references

The workspace includes prepared Raycast, Alfred, and local Node CLI references. They reuse pwdgen-core, run offline, and do not send generated passwords to PwdGen.

Embed the local generator

Create a privacy-first iframe for documentation, blogs, or internal tools. The widget is noindex and generates values only in the visitor’s browser.

Preview

Embed code