Guide

How to find a YouTube video ID

Thumbnail URLs, oEmbed, and Studio all key off eleven characters. Here is where they hide in every URL people actually paste.

Watch

https://www.youtube.com/watch?v=jNQXAC9IVRw — the ID is jNQXAC9IVRw. Extra flags (t=, list=, pp=, si=) come after and are not the ID. Mobile m.youtube.com is the same.

Share (youtu.be)

https://youtu.be/jNQXAC9IVRw — ID is the path. ?si= is share tracking; strip it with the link cleaner.

Shorts

https://www.youtube.com/shorts/jNQXAC9IVRw — ID after /shorts/. Same stills as watch.

Embed and nocookie

https://www.youtube.com/embed/jNQXAC9IVRw and https://www.youtube-nocookie.com/embed/jNQXAC9IVRw — ID after /embed/.

Live

https://www.youtube.com/live/jNQXAC9IVRw — ID after /live/ once the stream has a video object.

Music

music.youtube.com/watch?v= uses the same v= ID. Thumbnails are still on i.ytimg.com.

What is not a video ID

Channel IDs start with UC and are longer. Handles like @name are not IDs. Playlist IDs often start with PL, UU, or LL. If you paste a playlist URL with no v=, there is no still to fetch until you pick a video. The extractor reports a playlist ID when it sees one, but keys thumbnails off the video.

Quick cheatsheet

watch     …/watch?v=ID
share     youtu.be/ID
shorts    …/shorts/ID
embed     …/embed/ID
live      …/live/ID
music     music.youtube.com/watch?v=ID
nocookie  youtube-nocookie.com/embed/ID

Paste any of those into the YouTube video ID extractor. Strip si= with the link cleaner when you will store the URL. Then build stills: thumbnail URL format.

FAQ

Questions people actually type

How do I find a YouTube video ID?

On youtube.com/watch it is the v= parameter. On youtu.be it is the path. On Shorts it is after /shorts/. It is always 11 characters: A–Z, a–z, 0–9, hyphen, underscore.

How long is a YouTube video ID?

Eleven characters. Not the channel ID (starts with UC) and not a playlist ID (often PL, UU, or LL).

Where is the ID in a youtu.be link?

Right after the slash: youtu.be/jNQXAC9IVRw. Query flags after that are not part of the ID.

How do I get a YouTube ID from an embed iframe?

Read the src. youtube.com/embed/ID and youtube-nocookie.com/embed/ID both carry the same eleven characters.

Is a YouTube Shorts ID different from a watch ID?

No. shorts/ID and watch?v=ID are the same video object and the same thumbnail files.

Can I extract a video ID from a playlist URL?

Only if the URL also has v=. A playlist-only link has no still until you pick a video.

Does music.youtube.com use a different ID?

No. music.youtube.com/watch?v= uses the same v= ID. Thumbnails still live on i.ytimg.com.

Why do I need the ID to download a thumbnail?

Every CDN path is /vi/{ID}/filename.jpg. Titles change. The ID does not.