npub ↔ hex converter

Convert a Nostr public key between npub and hex, or decode a note, nevent, nprofile or naddr. Results appear as you paste.

Updated October 8, 2026 · by Richard Rapka

npub vs hex: what’s the difference?

They are the same public key written two ways. Hex is the raw 32-byte key as 64 characters (0–9, a–f), which is what Nostr events actually contain. npub is the same bytes encoded with bech32 (NIP-19), with a prefix that tells you what it is and a checksum that catches typos. Apps show npubs to people and use hex internally.

The other formats

Want to see who a key belongs to? Try the Nostr profile lookup.

Open Reventioned — free Read the FAQ