How to Get A YouTube Video Thumbnail Image Easily [All You Need is the YouTube Video Link]
How to Get A YouTube Video Thumbnail Image Easily [All You Need is the YouTube Video Link]
For some reason, I found myself needing my YouTube thumbnail images for stuff…
Blog post featured images, putting together mini products or lead magnets, etc.
And for whatever reason, YouTube decided to make it incredibly obnoxious to get the thumbnail images — apparently “right click + save image” for YouTube videos just is not chill.
So here’s what you do instead:
You restructure the URL pattern of the YouTube Video (using the video ID) to get whichever version of the image you want.
Let’s take a look at how it’s done.
YouTube Video URL
For the example, I will use this YouTube video of mine where I store some of my most confidential information:
youtube.com/watch?v=T0nSPx4qLM8
It’s helpful to first understand the primary structure of a YouTube video URL
Here’s the URL for that one: https://www.youtube.com/watch?v=T0nSPx4qLM8
YouTube Video URL Structure
There are 2 parts:
The Base URL:
https://www.youtube.com/watch?v=
Video ID:
T0nSPx4qLM8
To get the image, you just need the Video ID!
YouTube Image URLs
There are many image resolutions available for YouTube videos, with the default thumbnail image being 120x90 pixels.
Aka “shit” 😂
Here are the different URL patterns which correspond to different image sizes & resolutions that you can use to grab the images:
Default Quality:
http://img.youtube.com/vi/T0nSPx4qLM8/default.jpg
Medium Quality Default:
http://img.youtube.com/vi/T0nSPx4qLM8/mqdefault.jpg
High Quality Default:
http://img.youtube.com/vi/T0nSPx4qLM8/hqdefault.jpg
Standard Definition Default:
http://img.youtube.com/vi/T0nSPx4qLM8/sddefault.jpg
Maximum Resolution Default:
http://img.youtube.com/vi/T0nSPx4qLM8/maxresdefault.jpg
If it’s not already glaringly apparent how this shakes out, they only differ from the actual video URLs in a couple ways:
The images are hosted on a subdomain (
img.youtube.com
)the URL path after the hostname is
/vi/
instead of/watch?v=
(probably because it stands for “video image” … I’m guessing)After the Video ID there is another URL subpath which specifies the image resolution, ex:
/maxresdefault.jpg
Here they are for each one, with an example of the image you get for each.
Default Quality
Base:
http://img.youtube.com/vi/
Video ID:
T0nSPx4qLM8
Suffix:
/default.jpg
Fully constructed: http://img.youtube.com/vi/T0nSPx4qLM8/default.jpg
Medium Quality Default
Base:
http://img.youtube.com/vi/
Video ID:
T0nSPx4qLM8
Suffix:
/mqdefault.jpg
Fully constructed: http://img.youtube.com/vi/T0nSPx4qLM8/mqdefault.jpg
High Quality Default
Base:
http://img.youtube.com/vi/
Video ID:
T0nSPx4qLM8
Suffix:
/hqdefault.jpg
Fully constructed: http://img.youtube.com/vi/T0nSPx4qLM8/hqdefault.jpg
Standard Definition
Base:
http://img.youtube.com/vi/
Video ID:
T0nSPx4qLM8
Suffix:
/sddefault.jpg
Fully constructed: http://img.youtube.com/vi/T0nSPx4qLM8/sddefault.jpg
Maximum Resolution Default
Base:
http://img.youtube.com/vi/
Video ID:
T0nSPx4qLM8
Suffix:
/maxresdefault.jpg
Fully constructed: http://img.youtube.com/vi/T0nSPx4qLM8/maxresdefault.jpg
… Womp Womp.
I don’t have one (bc the image I uploaded originally was not high quality enough).
So all I get is this:
Final thoughts
There could be more image sizes but I thought that was enough.