Techvoyage

Nostr Key Pair Generator

Generate a new Nostr secp256k1 key pair client-side. Displayed in hex and bech32 (npub/nsec) formats.

Generated client-side using nostr-tools. No data leaves your device.

About this tool

This tool generates a new Nostr key pair (secp256k1) entirely in your browser using the nostr-tools library. You get the keys in raw hex format and as NIP-19 bech32 strings: npub for the public key, nsec for the secret key. Nothing is sent to any server or relay.

FAQ

What is the difference between npub and nsec?
npub is your public key in bech32 format — safe to share. nsec is your secret key — anyone who has it controls your identity, so never share it.
Can I use these keys with any Nostr client?
Yes. Paste the nsec into any NIP-19 compatible client, or use the hex keys in clients that accept them.
Is my private key stored or transmitted?
No. Keys are generated locally in your browser and never leave your device.