YouTube Thumbnail Guides5 min read Published Nov 20, 2026

maxresdefault.jpg Not Working? Why and How to Fix It

maxresdefault.jpg Not Working? Why and How to Fix It

Quick answer:maxresdefault.jpg returns a 404 (or a small grey placeholder) when YouTube never created a 1280×720 copy of that video’s thumbnail. It is not a bug in your code or in our tool. Use the next file down the chain, sddefault.jpg (640×480) or hqdefault.jpg (480×360), which exist for almost every public video.

If you just want the best thumbnail that exists for a video, paste the link into the YouTube Thumbnail Downloader. It checks every size and only shows the ones that really load, so you never download a broken file.

What is maxresdefault.jpg?

Every public YouTube video has a set of thumbnail files on YouTube’s image server. The address always follows the same pattern:

https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg

VIDEO_ID is the 11-character code in the video link (for example, the part after watch?v=). maxresdefault is the largest of the five standard files, at 1280×720 pixels in 16:9.

Chart of the five YouTube thumbnail files: maxresdefault 1280x720, sddefault 640x480, hqdefault 480x360, mqdefault 320x180 and default 120x90
Every public video has these five files at i.ytimg.com/vi/VIDEO_ID/.
File nameSize (px)RatioExists for
maxresdefault.jpg1280 × 72016:9Only some videos
sddefault.jpg640 × 4804:3Most videos
hqdefault.jpg480 × 3604:3Almost every video
mqdefault.jpg320 × 18016:9Almost every video
default.jpg120 × 904:3Every video

The three 4:3 files (sd, hq and default) have black bars above and below the picture, because a 16:9 image is placed inside a 4:3 frame. That is why hqdefault.jpg often looks letterboxed.

Why maxresdefault.jpg is not working: 6 causes

  1. YouTube never made a 1280×720 copy. This is the cause in most cases. Older videos, low-resolution uploads and many auto-generated thumbnails simply have no max-resolution file. The server answers with a 404 and a small grey image.
  2. The video was uploaded below 720p. If the source video is small, YouTube has nothing large to cut a 1280×720 frame from.
  3. The video is still processing. Right after upload, the larger files can appear minutes or hours after the small ones. Try again later.
  4. The video is private, deleted or blocked. If hqdefault.jpg also fails, the problem is the video, not the size.
  5. The video ID is wrong. A copied link may include extra parameters (&t=30s, ?si=…) or a playlist ID. Only the 11 characters of the video ID go in the URL.
  6. You asked for the WebP version. YouTube also serves WebP files at i.ytimg.com/vi_webp/VIDEO_ID/maxresdefault.webp. Some videos have the JPG but not the WebP, so a WebP request can fail when the JPG works.

How to check which sizes a video really has

The fast way: paste the video link into our thumbnail downloader. It tests all five files and shows only the ones that load, with their real dimensions.

The manual way: open https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg in a new tab. If you see a small grey box (120×90) instead of the picture, the file does not exist. Change maxresdefault to sddefault, then hqdefault, until a real image appears.

Watch out: a missing maxresdefault still shows an image (the grey placeholder). So checking “did an image load?” is not enough. Check the image’s real width, or the HTTP status (404).

The fallback order that always works

Fallback order for YouTube thumbnails: maxresdefault, then sddefault, hqdefault, mqdefault and default
Use the first file that loads at its real size.

Try the files from largest to smallest and use the first one that loads at its true size: maxresdefault → sddefault → hqdefault → mqdefault → default.

For developers: a fallback in JavaScript

const sizes = ['maxresdefault', 'sddefault', 'hqdefault', 'mqdefault', 'default'];

function bestThumbnail(videoId) {
 return new Promise(resolve => {
 let i = 0;
 const tryNext = () => {
 const img = new Image();
 img.onload = () => {
 // YouTube's "missing" placeholder is 120px wide
 if (img.naturalWidth > 120 || sizes[i] === 'default') resolve(img.src);
 else { i++; tryNext(); }
 };
 img.onerror = () => { i++; tryNext(); };
 img.src = `https://i.ytimg.com/vi/${videoId}/${sizes[i]}.jpg`;
 };
 tryNext();
 });
}

The width check matters. A missing maxresdefault.jpg still loads the 120-pixel grey image, so onload fires even though the file you wanted is not there.

If you use the YouTube Data API, read the thumbnails object of the video resource instead. It only lists the sizes that exist, so you can take the largest one without guessing.

If it is your own video: how to get a maxresdefault thumbnail

  • Upload a custom thumbnail. YouTube now recommends 3840×2160 pixels in 16:9, with a minimum width of 640 pixels (YouTube Help). A large custom image gives YouTube enough pixels to create every size, including 1280×720.
  • Verify your account. Only verified accounts can upload custom thumbnails. Without verification you can only pick an auto-generated frame.
  • Upload the video in 720p or higher. Auto-generated thumbnails come from the video itself.
  • Wait for processing. Give it a few hours, then check the URL again.
  • Re-upload the thumbnail if an old video still has no max-resolution file. A new upload creates a fresh set of files.

maxresdefault vs hqdefault: which should you use?

Use caseBest fileWhy
Blog post or article imagemaxresdefault (fallback sddefault)Sharp on large screens, 16:9 with no bars
Video gallery or gridmqdefault16:9, small and fast to load
Guaranteed to existhqdefaultAvailable for almost every video
Playlist iconsdefaultTiny and always present

Frequently asked questions

Why does maxresdefault.jpg show a grey image instead of an error?

YouTube answers a missing file with a 404 status and still sends a small grey placeholder image. Browsers display that image, so it looks like the file loaded. Check the width: the placeholder is 120×90.

Does every YouTube video have a maxresdefault thumbnail?

No. Only videos with a large enough source, usually a custom thumbnail or an HD upload, have it. Smaller files such as hqdefault exist for almost every public video.

Is maxresdefault the same as the 4K thumbnail?

No. You can upload a 3840×2160 custom thumbnail, but the public maxresdefault.jpg file is 1280×720. YouTube resizes your upload into the standard sizes.

Why does hqdefault have black bars?

hqdefault is 480×360, a 4:3 frame. A 16:9 thumbnail is placed inside it with bars above and below. Use mqdefault or maxresdefault for a clean 16:9 image.

Can I download maxresdefault thumbnails for Shorts and live streams?

Yes, when they exist. Shorts and live videos use the same file names. Paste the Shorts or live link into the downloader and it will show every size that is available. For more on Shorts, read our YouTube Shorts thumbnail guide.

Related:Why YouTube thumbnails look blurry: 10 common reasons