Nostr key generator
Generate a fresh Nostr keypair entirely in your browser. The
private key is produced by your device's CSPRNG
(crypto.getRandomValues) and never leaves this tab —
no fetch, no localStorage, no logging.
nsec into web clients is risky. Treat keys generated here
as throwaways unless you understand the trade-offs.
Vanity prefix (optional)
Brute-force a key whose npub1 begins with your chosen
prefix. Each extra character multiplies the search by ~32. Three
chars usually finishes in seconds, four in a minute, five may take
an hour. Runs in a Web Worker so the UI stays responsive.