---
title: "Nostr Key Pair Generator - TechVoyage"
canonical_url: "https://techvoyage.dev/tools/nostr-key-generator"
last_updated: "2026-10-20T09:53:45.968Z"
meta:
  description: "Generate a new Nostr secp256k1 key pair client-side. Displayed in hex and bech32 (npub/nsec) formats."
  "og:description": "Generate a new Nostr secp256k1 key pair client-side. Displayed in hex and bech32 (npub/nsec) formats."
  "og:title": "Nostr Key Pair Generator - 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**

<dl>

<dt>**What is the difference between npub and nsec?**</dt>
<dd>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.</dd>

<dt>**Can I use these keys with any Nostr client?**</dt>
<dd>Yes. Paste the nsec into any NIP-19 compatible client, or use the hex keys in clients that accept them.</dd>

<dt>**Is my private key stored or transmitted?**</dt>
<dd>No. Keys are generated locally in your browser and never leave your device.</dd></dl>