Glossary · protocol

What is JWT (JSON Web Token)?

A JWT (JSON Web Token) is a signed token format used to authenticate requests without server-side session storage. The token carries claims (user ID, expiry, permissions) signed by a server secret. Anyone can read the claims; only the server can verify the signature. VidPickr uses JWT-style tokens for its download URLs.

Also called:json web token · bearer token

A JWT has three parts separated by dots: header (the algorithm), payload (the claims), signature (HMAC of header + payload using a secret). The receiving server validates the signature and trusts the claims if it matches.

For VidPickr specifically, our download tokens are an HMAC-signed JWT-equivalent. The payload includes the googlevideo URL, the filename, an expiry timestamp, and optionally a proxy URL for geo-recovered content. Each /stream request decodes the token, checks the signature + expiry, and uses the embedded data to fetch and serve the content.

Why this matters: the user's browser can't modify the token (any modification breaks the signature), can't see the URL extraction mechanism (the token hides what kkdai / yt-dlp actually returned), and tokens self-expire so leaked tokens don't work for long.

Common questions

Are JWTs the same as cookies?
No. Cookies are a transport mechanism (browsers automatically attach them to requests); JWTs are a token format. You can put a JWT inside a cookie, or send it via Authorization header, or as a URL parameter. The format and the transport are separate concerns.

Related terms

VidPickr is a free, browser-based YouTube downloader. Every term in this glossary either describes how YouTube delivers video or why your downloads behave the way they do. Try the downloader →