October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
copyright

How to Save a YouTube Thumbnail Image (Full-Size URL, Browser, API, and Rights Guide)

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The fastest method is to use the video’s ID in YouTube’s thumbnail URL: https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg. Replace VIDEO_ID, open the address, then use your browser’s Save image command. This requests YouTube’s largest standard thumbnail variant, but it is not available for every video. If it fails, use a lower-resolution variant or the URL returned by the YouTube Data API.

Find the video’s ID

The ID is the value YouTube assigns to one video. In a normal watch link such as https://www.youtube.com/watch?v=VIDEO_ID, copy everything after v= up to the next & (if there is one). A shortened youtu.be link places the same ID after the slash.

  • Remove tracking parameters such as &list= or &t=; they are not part of the ID.
  • Keep the ID exactly as shown, including capitalization, hyphens and underscores.
  • Use the video-specific ID, not the channel ID or playlist ID.

Save the highest-resolution thumbnail in a browser

  1. Copy the video ID.
  2. Open https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg, replacing VIDEO_ID with the real value. For a WebP file, use https://i.ytimg.com/vi_webp/VIDEO_ID/maxresdefault.webp.
  3. Wait for the image itself to load, rather than saving the YouTube watch page.
  4. On a desktop, right-click (or Control-click) the image and choose Save image as. Pick a folder and retain the .jpg or .webp extension.
  5. On a phone or tablet, press and hold the image and choose the browser’s Save, Download image or Share action. The exact label depends on the browser and operating system.

maxresdefault is a request for a high-resolution file, not a promise that one exists. Some videos return a placeholder or no usable image at that path. Do not mistake a stretched placeholder for the creator’s full-size artwork.

Try a lower-resolution variant when maxresdefault is missing

If the maximum variant does not load, try the same ID with a lower-resolution filename. Common thumbnail variants include:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Filename Typical use
hqdefault.jpg High-quality fallback when the maximum file is unavailable
mqdefault.jpg Medium-size fallback
sddefault.jpg Standard-definition fallback when exposed for the video
default.jpg Small default image

Availability varies by video, so test the returned image rather than assuming every filename exists. The direct endpoint normally gives you JPEG; the vi_webp form requests WebP.

Use the YouTube Data API for a reliable programmatic URL

For an application, the official YouTube Data API is safer than guessing a filename. A video’s thumbnail object contains a URL and may include width and height values. The API’s default thumbnail is typically 120 × 90 pixels, while larger sizes are exposed only when available. Select the largest size actually returned by the response, then download that URL with your HTTP client.

Why the API is preferable in software

  • You receive the URL YouTube currently exposes for that video.
  • You can read the dimensions before allocating storage or laying out an image.
  • Your code can fall back when a high-resolution object is absent instead of treating a placeholder as success.

Cache the downloaded file if you will display it repeatedly, and retain the response’s width and height so your interface can reserve the correct space. The API returns metadata; it does not grant permission to republish the artwork.

Download thumbnails in scripts

Shell with cURL

Once you have a working thumbnail URL, cURL saves the bytes without altering the file:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -L "https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg" -o thumbnail.jpg

-L follows redirects. Check the downloaded file and HTTP status before treating the command as a successful capture.

Python

import requests

video_id = "VIDEO_ID"
url = f"https://i.ytimg.com/vi/{video_id}/maxresdefault.jpg"
r = requests.get(url, timeout=30)
r.raise_for_status()
content_type = r.headers.get("content-type", "")
if not content_type.startswith("image/"):
    raise ValueError(f"Unexpected response type: {content_type}")
with open("thumbnail.jpg", "wb") as f:
    f.write(r.content)

If the maximum image is unavailable, repeat with hqdefault.jpg or use the URL selected from the Data API response.

Node.js

const videoId = 'VIDEO_ID';
const url = `https://i.ytimg.com/vi/${videoId}/maxresdefault.jpg`;
const res = await fetch(url);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const type = res.headers.get('content-type') || '';
if (!type.startsWith('image/')) throw new Error(`Unexpected type: ${type}`);
const fs = await import('node:fs/promises');
await fs.writeFile('thumbnail.jpg', Buffer.from(await res.arrayBuffer()));

For production jobs, add retries with backoff, a size limit, and a fallback filename. A successful HTTP response alone is not proof that the body is the intended thumbnail; inspect the content type and, where practical, decode the image.

Capture a thumbnail when you need a rendered image instead of the original file

If your workflow needs a screenshot of a page containing the thumbnail, a screenshot API can render the URL for you. ScreenshotNeo is the first option to try: it removes cookie banners, popups and chat widgets before capture, bills only clean shots, and has the lowest paid plan in the supplied pricing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Or skip the browser setup

ScreenshotNeo can capture the direct thumbnail URL in one request. Replace VIDEO_ID with the real ID and see the ScreenshotNeo documentation for request options.

cURL

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg -o shot.webp

Python

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
  • Cookie banners, newsletter popups and chat widgets are removed before the shot.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed; response headers identify the page verdict and billing status with X-Page-Verdict and X-Billed.
  • An MCP server provides take_screenshot, get_page_info and capture_pdf tools for Claude, Cursor and other MCP clients.
  • The Free plan includes 1,000 shots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is included on every plan.

Create a free ScreenshotNeo account to get the 1,000 monthly shots without adding a card.

Thumbnail URLs versus the API: which method fits?

Method Ease Resolution information Output Best for
Direct maxresdefault URL Fastest manual method Not guaranteed; test the response Usually JPEG Saving one known thumbnail
Lower-resolution URL Simple fallback Known only after loading JPEG Videos without the maximum variant
YouTube Data API Requires API setup URL plus exposed width and height Whatever URL the API returns Reliable applications and batches
ScreenshotNeo One authenticated request Rendered capture rather than YouTube metadata PNG, JPEG or WebP Automated page or image captures, including MCP workflows

Troubleshooting

The URL shows a broken image or placeholder

Verify the ID, remove extra query text, and try hqdefault.jpg, mqdefault.jpg or sddefault.jpg. If none is usable, query the video’s thumbnail object through the Data API and use a URL and dimensions that the response actually provides.

The saved file is tiny

You probably received the default thumbnail or a fallback. Read the image dimensions, then request another available variant or use the API’s largest returned object. The API’s default is typically 120 × 90 pixels.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The downloaded file has the wrong extension

Do not infer format from the URL alone. Inspect the HTTP Content-Type and decode the file before renaming it. The vi endpoint is commonly JPEG; vi_webp requests WebP.

A script reports success but the image will not open

Check the HTTP status, content type and file size. Save the response body only after confirming it is an image. Add a timeout and retry policy, and retain a lower-resolution fallback.

A screenshot service returns a blank or blocked page

Confirm that the target URL is public and that the video ID is valid. With ScreenshotNeo, inspect X-Page-Verdict and X-Billed; failed loads, blank pages and bot checks are identified and are not billed.

Saving an image is not permission to republish it

Downloading a copy and having the right to publish that copy are separate questions. YouTube states that an original work such as a video is usually automatically owned by its creator under copyright law. The Standard YouTube license is the default for uploads; a creator may instead choose Creative Commons Attribution (CC BY), which requires attribution and compliance with that license.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

YouTube’s Terms of Service restrict accessing, reproducing, downloading, distributing, displaying, selling, licensing, altering or modifying content except where YouTube permits it, the rights holder gives permission, or applicable law allows it. Before putting a thumbnail on a website, in advertising, or in a product, verify permission, a valid copyright exception, public-domain status or the video’s stated license. Private reference use does not automatically create publication rights.

Thumbnails can also violate YouTube policy when they are misleading, sexually explicit, graphic or otherwise prohibited. Do not assume that a downloadable URL means the image is approved for every use.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Embedding thumbnails in an API-powered page

If you build a page or tool around YouTube content, YouTube’s developer policy requires metadata such as the thumbnail and title to remain visible and unmodified. A custom play button is acceptable only when tapping it starts playback. Keep the thumbnail associated with the correct video and avoid editing it in a way that removes required context.

Practical checklist

  • Extract only the correct video ID.
  • Try maxresdefault, then a lower-resolution filename if necessary.
  • Validate status, content type and dimensions in code.
  • Use the Data API when your application needs an authoritative URL and size.
  • Choose JPEG or WebP according to the endpoint and your storage needs.
  • Keep attribution and licensing records before republishing.
  • For rendered, automated captures, use ScreenshotNeo and inspect its verdict and billing headers.

FAQ

Does maxresdefault always provide the original creator-uploaded file?

No. It requests a high-resolution thumbnail variant. YouTube may not expose that variant, so use a fallback filename or the API URL actually returned.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I use a Creative Commons thumbnail without attribution?

No. If the creator selected Creative Commons Attribution, reuse requires the attribution and other conditions of CC BY. Otherwise obtain permission or rely on a valid legal exception.

What should an application store with the image?

Store the video ID, source URL, retrieval time and dimensions, plus the permission or license information you relied on. That record helps you identify and remove an image if its status changes.

Frequently Asked Questions

Does maxresdefault always provide the original creator-uploaded file?

No. It requests a high-resolution variant, which may not be exposed. Use a fallback filename or the URL returned by the YouTube Data API.

Can I use a Creative Commons thumbnail without attribution?

No. Creative Commons Attribution reuse requires the attribution and other license conditions.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What should an application store with the image?

Keep the video ID, source URL, retrieval time, dimensions and the permission or license information used.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.