How to Get the Thumbnail URL of Any YouTube Video

Updated February 2026 · 4 min read

Every YouTube video's thumbnail is hosted at a predictable URL. If you know the video ID, you can construct the direct image URL for any thumbnail in any resolution — no tools needed.

This is useful for developers embedding thumbnails, bloggers referencing YouTube content, or anyone who needs the direct image link rather than downloading the file.

Step 1: Find the Video ID

The video ID is an 11-character string that uniquely identifies every YouTube video. Here's where to find it in different URL formats:

URL Format Video ID Location
youtube.com/watch?v=dQw4w9WgXcQ After v=
youtu.be/dQw4w9WgXcQ After the /
youtube.com/shorts/dQw4w9WgXcQ After /shorts/
youtube.com/embed/dQw4w9WgXcQ After /embed/

In all examples above, the video ID is dQw4w9WgXcQ.

Tip: The video ID is always exactly 11 characters long and contains letters (a-z, A-Z), numbers (0-9), hyphens (-), and underscores (_).

Step 2: Construct the Thumbnail URL

YouTube thumbnails follow this URL pattern:

https://img.youtube.com/vi/{VIDEO_ID}/{QUALITY}.jpg

Replace {VIDEO_ID} with the video ID and {QUALITY} with one of these options:

Quality Filename Dimensions
Maximum maxresdefault.jpg 1280 x 720
Standard sddefault.jpg 640 x 480
High Quality hqdefault.jpg 480 x 360
Medium Quality mqdefault.jpg 320 x 180
Default default.jpg 120 x 90

Example URLs

For video ID dQw4w9WgXcQ:

https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg
https://img.youtube.com/vi/dQw4w9WgXcQ/sddefault.jpg
https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg
https://img.youtube.com/vi/dQw4w9WgXcQ/mqdefault.jpg
https://img.youtube.com/vi/dQw4w9WgXcQ/default.jpg

Paste any of these URLs directly into your browser to see (and save) the thumbnail image.

Alternative URL Format

There's an older URL format that also works:

https://i.ytimg.com/vi/{VIDEO_ID}/{QUALITY}.jpg

Both img.youtube.com and i.ytimg.com serve the same images. The img.youtube.com format is generally preferred as it's the more widely recognized domain.

Numbered Thumbnails

YouTube also generates three auto-selected frame thumbnails for every video:

https://img.youtube.com/vi/{VIDEO_ID}/0.jpg   (same as hqdefault)
https://img.youtube.com/vi/{VIDEO_ID}/1.jpg   (frame thumbnail 1)
https://img.youtube.com/vi/{VIDEO_ID}/2.jpg   (frame thumbnail 2)
https://img.youtube.com/vi/{VIDEO_ID}/3.jpg   (frame thumbnail 3)

Thumbnails 1, 2, and 3 are auto-selected frames from different points in the video. Thumbnail 0 is the same as hqdefault.jpg.

Handling Missing Thumbnails

Not every video has all resolutions available:

  • maxresdefault.jpg — Only available if the creator uploaded a custom thumbnail or the video is HD. Shows a grey placeholder if unavailable.
  • sddefault.jpg — Available for most videos, but some older ones may not have it.
  • hqdefault.jpg — Available for virtually all videos. This is the safest fallback.

Developer tip: If you're embedding thumbnails programmatically, use hqdefault.jpg as the fallback. You can try loading maxresdefault.jpg first and fall back to hqdefault.jpg on error.

Using Thumbnail URLs in HTML

To embed a YouTube thumbnail on a webpage:

<img
  src="https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg"
  alt="Video thumbnail"
  width="480"
  height="360"
  loading="lazy"
>

For a responsive version with max-resolution that falls back gracefully:

<picture>
  <source
    srcset="https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg"
    type="image/jpeg">
  <img
    src="https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg"
    alt="Video thumbnail"
    loading="lazy">
</picture>

Skip the URL Juggling — Use ThumbSaver

If you'd rather not construct URLs manually, ThumbSaver does this automatically. Paste any YouTube URL and it shows all available thumbnail resolutions with download links — and it works with regular videos, Shorts, and all URL formats.

Get Thumbnail URLs Instantly

Paste a YouTube URL to see and download all available thumbnail resolutions.

Open ThumbSaver