Serverless short(er) links for Nostr
Shorten
or
Expand
How it works

Nostr identifiers (npub, nevent, naddr) are bech32-encoded bytes. This tool strips the bech32 wrapper and re-encodes the raw bytes in base62 (0–9, a–z, A–Z).

A 32-byte pubkey goes from npub1... (63 chars) to 43 chars. No database, no server — the short code is the data.

Deploy this file to any static host. Route /:type/:code to this index.html and the JS router handles the rest.

URL scheme:   /p/<base62> → npub  |  /e/<base62> → nevent  |  /a/<base62> → naddr  |  /n/<base62> → note