# Nostr: What do `npub` and `nsec` mean?

`npub` is a human-readable encoding of a Nostr public key, suitable for sharing.

2026-08-13
::
Switchboard Tech Services


![Nostr: What do `npub` and `nsec` mean?](https://switchboardtechservices.com/static/images/defaults/guides.webp)

## Short answer

`npub` is a human-readable encoding of a Nostr public key, suitable for sharing. `nsec` encodes the private key and should be treated like a secret, never posted or entered into an untrusted site. NIP-19 defines these display formats; the underlying protocol uses the key data in other encodings. A screenshot containing your `nsec` can be enough to compromise your identity.

## Sources

[NIP-19: Human-readable encodings](https://github.com/nostr-protocol/nips/blob/master/19.md).

- Categories:
  [Nostr](https://switchboardtechservices.com/guides/categories/nostr/)
- Tags:
  [#Nostr](https://switchboardtechservices.com/guides/tags/nostr/), [#Decentralized Social](https://switchboardtechservices.com/guides/tags/decentralized-social/), [#Open Protocols](https://switchboardtechservices.com/guides/tags/open-protocols/), [#Digital Identity](https://switchboardtechservices.com/guides/tags/digital-identity/)

[Guides RSS](https://switchboardtechservices.com/feeds/guides.xml "Subscribe using an RSS reader")

---

Canonical URL: https://switchboardtechservices.com/guides/nostr-what-do-npub-and-nsec-mean/

Language: en-us

Content type: guide

Author: Switchboard Tech Services

Published: 2026-08-13T22:08:12+00:00

Description: A practical answer to What do `npub` and `nsec` mean?
