Christian Heilmann

Getting all the video thumbnails from a YouTube video

Wednesday, January 11th, 2023 at 9:16 pm

I just wrote myself a small tool to get all the thumbnail images available for a YouTube video.

Say you have a Youtube URL, the ID is the last part: https://www.youtube.com/watch?v=GDukVqBDd3Q, in this case “GDukVqBDd3Q”. Just copy this into the tool and you will get all the images available. You can choose to get JPG or WebP images and you can click each to see it or right-click to save it.

Result of the scraper showing all the thumbnails of a video

If you feel like doing this by hand, here are the different URLs:

  • Player Background Thumbnail (480×360):
    • https://i.ytimg.com/vi_webp/VIDEO_ID/0.webp
    • https://i.ytimg.com/vi/VIDEO_ID/0.jpg
  • Video frames thumbnails (120×90)
    • Start: https//i.ytimg.com/vi_webp/VIDEO_ID/1.webp
    • Middle: https://i.ytimg.com/vi_webp/VIDEO_ID/2.webp
    • End: https//i.ytimg.com/vi_webp/VIDEO_ID/3.webp
    • Start: https//i.ytimg.com/vi/VIDEO_ID/1.jpg
    • Middle: https://i.ytimg.com/vi/VIDEO_ID/2.jpg
    • End: https//i.ytimg.com/vi/VIDEO_ID/3.jpg
  • Lowest quality thumbnail (120×90)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/default.webp
    • https://i.ytimg.com/vi/VIDEO_ID/default.jpg
  • Medium quality thumbnail (320×180)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/mqdefault.webp
    • https://i.ytimg.com/vi/VIDEO_ID/mqdefault.jpg
  • High quality thumbnail (480×360)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/hqdefault.webp
    • https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg
  • Standard quality thumbnail (640×480)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/sddefault.webp
    • https//i.ytimg.com/vi/VIDEO_ID/sddefault.jpg
  • Unscaled thumbnail resolution
    • https://i.ytimg.com/vi_webp/VIDEO_ID/maxresdefault.webp
    • https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg

Share on Mastodon (needs instance)

Share on Twitter

My other work: