How to Find Any YouTube Video's ID and Thumbnail URL
The video ID is the code after v= in a watch link, after youtu.be/ in a short link, after /shorts/ in a Shorts link and after /embed/ in an embed link. Our tools pull it out of all four and build thumbnail links from it.
Where the ID sits
YouTube's player parameters documentation gives the embed format "https://www.youtube.com/embed/VIDEO_ID", and YouTube Help's embed page describes the ID as "the series of letters that follows "embed/"". We found no official page that documents the watch, youtu.be or Shorts formats or states the ID's length. IDs are 11 characters in practice, and our extractor assumes that.
Thumbnail sizes
The YouTube Data API's thumbnails documentation lists default ("120px wide and 90px tall"), medium ("320px wide and 180px tall"), high ("480px wide and 360px tall"), standard ("640px wide and 480px tall") and maxres ("1280px wide and 720px tall"), and says standard and maxres are "available for some videos". That's why a max-resolution link sometimes fails.
The img.youtube.com/vi/{ID}/maxresdefault.jpg pattern our downloader uses isn't on that page. It works without an API key, but it isn't officially documented, so it could change.
Worked example
Our YouTube Video ID Extractor returns dQw4w9WgXcQ for https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=42s&list=PL123, https://youtu.be/dQw4w9WgXcQ?si=abc123, https://www.youtube.com/shorts/dQw4w9WgXcQ and https://www.youtube.com/embed/dQw4w9WgXcQ. The YouTube Thumbnail Downloader then builds five links, from https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg (1280×720) down to default.jpg (120×90). A mobile share link where v= isn't the first parameter, such as https://m.youtube.com/watch?feature=share&v=dQw4w9WgXcQ, also returns dQw4w9WgXcQ, and so does a bare ID pasted on its own.
Common mistakes
Assuming a max-resolution thumbnail always exists, when the API docs say it's only available for some videos. Copying tracking parameters along with the ID. Relying on the img.youtube.com pattern for anything critical, since YouTube doesn't document it.