What Is a YouTube Video ID?
The unique 11-character code YouTube assigns to every video, used to build both watch and embed URLs.
Every YouTube video has a unique identifier: an 11-character string made of letters, numbers, hyphens and underscores, such as dQw4w9WgXcQ. This video ID is what actually tells YouTube which video to load; everything else in a URL is just formatting around it.
Where to find it
In a normal watch URL it is the value after v=, for example youtube.com/watch?v=VIDEO_ID. In a short youtu.be link it is the part right after the slash. In a Shorts link it follows /shorts/.
Why tools ask for a full link instead
Most people copy the full URL from their browser rather than hunting for the raw ID, so tools like the embed code generator and the thumbnail viewer accept any common URL format and extract the video ID automatically, though a bare 11-character ID also works directly.
How YouTube generates and uses video IDs
Every video uploaded to YouTube receives a unique 11-character identifier at the time of upload, generated to be effectively collision-free across YouTube’s entire catalogue. This ID never changes for the life of the video, even if the creator later edits the title, description, thumbnail or privacy settings, which is why it is the one truly stable reference point across all the different URL formats (watch, embed, short) that all ultimately point to the same underlying video.
A practical example
Given the link https://www.youtube.com/watch?v=dQw4w9WgXcQ, the video ID is dQw4w9WgXcQ, the value after v=. The same ID appears in the embed URL (/embed/dQw4w9WgXcQ), in a shortened link (youtu.be/dQw4w9WgXcQ), and in a Shorts link if the same content were published in that format. Recognising this pattern, the same 11 characters showing up across otherwise very different-looking URLs, is a useful debugging skill when working with embed code by hand.
Video ID vs. channel ID
It is worth distinguishing a video ID from a channel ID, which is a separate, differently formatted identifier for an entire YouTube channel rather than a single video. Pasting a channel ID where a video ID is expected (in an embed URL, for example) will not work, since the /embed/ path specifically expects a video or, via videoseries, a playlist. Our embed code generator accepts full links rather than requiring you to extract the ID manually, which avoids this category of mistake entirely.
Because the ID is so central to how embedding works, most embedding problems that look mysterious at first turn out to trace back to an incorrect or mistyped ID once checked directly.
Video IDs are case-sensitive and can include both uppercase and lowercase letters as distinct characters, so copying one manually rather than copying the full link increases the chance of a small, hard-to-spot transcription error.
Frequently asked questions
How many characters is a YouTube video ID?
Exactly 11 characters, made up of letters, numbers, hyphens and underscores.
Do I need the video ID or can I paste a full link?
Our embed code generator accepts a full link and extracts the video ID automatically.
Build your embed code
Our generator writes a privacy friendly embed code you can paste straight into your page.