npub Encoder

Convert hex pubkeys to npub identifiers — 5 sats

About

Encode a canonical 64-character hex Nostr pubkey into npub1... format. Useful when sharing keys in Nostr-native clients and profiles.

Try It

5 sats via L402.

API Usage

curl -X POST https://maximumsats.com/api/npub-encode \
  -H "Content-Type: application/json" \
  -d '{"pubkey":"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"}'

Sample Response

{
  "ok": true,
  "hex_pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
  "npub": "npub17td9xj68m0lqtq9y9h3mwkx2jsge630d8r55utumurq4dze3c42sdav95p"
}
Also available via MCP as npub_encode at maximumsats.com/mcp