TubeMind

YouTube video ID extractor

Paste one YouTube link or hundreds, or any text that contains them, and get the video IDs in seconds. Watch, youtu.be, Shorts, live, embed and mobile links all work. Playlist and channel links are listed apart, and you can check each video’s title, views and availability.

Quick answer: a YouTube video ID is the 11-character code that names one video. It sits after v= in a watch link, after youtu.be/ in a short link and after /shorts/ in a Shorts link. Paste any number of links into this free YouTube video ID extractor and it pulls out every ID, removes duplicates and tracking parts, and can check which videos still exist.

What this YouTube video ID extractor does

This is a free YouTube video ID extractor for one link or a few hundred. You paste links, bare IDs or a messy block of text, and it gives back a clean list of video IDs in the order you pasted them. Watch links, youtu.be links, Shorts, live links, embed links, mobile and YouTube Music links, thumbnail links and links shared from apps all work. Playlist and channel links are listed on their own, and anything that is not a YouTube video is set aside so you can see it.

I built TubeMind's free tools so that simple jobs like this stay on your side. The extraction itself runs in your browser. Nothing you paste is sent to TubeMind unless you tick Check each video, which sends only the IDs to look up their titles, views and status.

It is useful for a few kinds of people:

  • Creators who keep a list of their own videos for a website, a course or a sponsor report.
  • Marketers and agencies who need IDs for ad campaigns, sponsorship sheets or tracking.
  • Developers who need clean IDs for API calls, embeds or a database.
  • Teachers and researchers who collect links over years and need to know which ones still work.

What a YouTube video ID is

YouTube's API documentation describes the video ID as "The ID that YouTube uses to uniquely identify the video" (YouTube Data API, videos resource). Every link to a video, whatever its shape, carries that same ID. That is why the ID is the safest way to refer to a video in a spreadsheet, a database, an API call or an embed.

In practice every video ID is 11 characters long. It uses capital letters, small letters, numbers, the hyphen and the underscore. That gives 64 possible symbols in each of the 11 places, so there are more than 73 quintillion possible IDs. YouTube will not run out.

IDs are case sensitive. dQw4w9WgXcQ and dQw4w9WgXcq are two different IDs, and the second one most likely points to no video at all. So never change the case of an ID, and be careful with spreadsheet tools that "fix" capital letters for you.

YouTube does not publish a formal rule that IDs must always be 11 characters. It is a pattern every video follows today. This is one reason the tool can also check IDs against the YouTube API: a check tells you for sure whether a video exists, which a pattern cannot.

A video ID is also different from other YouTube IDs. A channel ID starts with UC and is 24 characters long. A playlist ID usually starts with PL, UU or OL and is longer. If you need a channel's ID, the channel ID finder covers that in full, so this page sticks to videos.

How to use the video ID extractor, step by step

  1. Copy your links. They can be one per line, separated by commas or spaces, or mixed into normal text such as notes or a chat export.
  2. Paste them into the box. You can also paste bare 11-character IDs.
  3. Tick Keep start times if you want clean links to keep a t= time, for example t=90 for a link that starts at 1:30.
  4. Tick Check each video if you want the title, channel, upload age, views and status of each video.
  5. Click Extract IDs. You get a numbered table with one row per unique video.
  6. Use the buttons above the table: Copy IDs (one per line), Copy comma-separated, Copy clean links, Copy short links, Export CSV or download a TXT file.

The line at the top of the result tells you what happened, for example "48 unique video IDs from 52 items, 4 duplicates removed". Below the table you see any playlist IDs, channels, skipped clip links and items that had no YouTube video.

Where the ID sits in each type of link

Link typeExampleWhere the ID is
Watch pageyoutube.com/watch?v=IDAfter v=, before the next &
Short linkyoutu.be/ID?si=abcAfter youtu.be/, before the ?
Shortsyoutube.com/shorts/IDAfter /shorts/
Liveyoutube.com/live/IDAfter /live/
Embedyoutube.com/embed/ID or youtube-nocookie.com/embed/IDAfter /embed/
Thumbnaili.ytimg.com/vi/ID/hqdefault.jpgBetween /vi/ and the file name
Mobile and Musicm.youtube.com/watch?v=ID, music.youtube.com/watch?v=IDAfter v=
Shared from appsattribution and redirect linksInside an encoded watch link

Read the table from left to right: find the shape of your link, then look for the marker in the last column. For example, in youtu.be/abcdefghijk?si=XYZ the ID is abcdefghijk, because it comes right after youtu.be/ and stops at the question mark. Everything after the ID, such as ?si=, &t=, &list= and &feature=, is not part of the ID. The tool drops these from clean links and keeps the start time only if you ask.

How the tool reads each link

Here is what happens to every item you paste, taken straight from how the tool is built:

  1. Your text is split into items at every new line, space and comma.
  2. Each item is decoded up to two times. This turns encoded text like %3Fv%3D back into ?v=, so links copied from apps and redirect pages still work.
  3. Google and YouTube redirect links are unwrapped, so the tool reads the link inside them.
  4. An item that is exactly 11 allowed characters, with at least one capital letter, number, hyphen or underscore, is taken as a bare video ID.
  5. Anything else must be on a YouTube address (youtube.com, youtu.be, youtube-nocookie.com, y2u.be or ytimg.com). Links to other video sites are not counted.
  6. The tool looks for the ID after one of the known markers from the table above. The ID must be exactly 11 characters, with no extra ID characters after it, so a broken 12-character code is not cut down to a wrong ID.
  7. If there is no video ID, it checks for a playlist (list=), then a channel (/channel/UC... or an @handle), then a clip link.
  8. Duplicate IDs are removed. The first time an ID appears is the one kept, so your order stays the same.

The table below shows how each kind of input ends up in the result:

What you pasteWhere it goes
Watch, youtu.be, embed, Music or thumbnail linkVideo row in the table
Shorts linkRow marked Short
/live/ linkRow marked Live
Watch link that also has list=Video row (the video wins over the playlist)
Playlist link with no videoPlaylist IDs line, with a link to list its videos
Channel link with UC ID, @handle, /c/ or /user/ nameChannels line, with a link to get channel IDs
Clip link (/clip/)Counted and skipped
Anything else"Without a YouTube video" list

So if you paste youtube.com/watch?v=ID&list=PL..., you get the video, not the playlist. That is usually what you want when you copied a link while a playlist was playing. If you wanted the whole playlist, paste the playlist page link instead and use the playlist length calculator to list every video in it.

Clip links are skipped because a clip link carries its own clip code, not the video ID. Open the clip on YouTube and copy the link of the full video instead.

Check which videos still exist

Old lists collect dead links. Videos get deleted, made private or removed for a rule break. When you tick Check each video, the tool sends the first 200 unique IDs to the official YouTube Data API through TubeMind. YouTube's videos.list method costs 1 quota unit per call and the tool asks for up to 50 IDs per call, so 200 IDs cost 4 units. Results are cached for 6 hours, so checking the same list twice in a morning does not cost anything new.

Each row then gets a status:

StatusWhat it means
AvailableYouTube returned the video. You see its title, channel, upload age and views.
Deleted, private or invalidYouTube returned nothing for this ID.
Not in our saved dataThe live check was not possible, and TubeMind had no saved copy of this video.

For example, say you check 10 IDs and 8 come back Available while 2 say Deleted, private or invalid. Those 2 links are broken for your viewers, whatever the reason. The API does not say which reason it is, so the tool does not guess. Unlisted videos show as Available, because YouTube says anyone with the link can watch an unlisted video (YouTube Help: video privacy settings).

After a check, the Type column also comes from YouTube's data, so a video that YouTube treats as a Short is marked Short even if you pasted a normal watch link.

An example to follow

Say you run a cooking channel and keep a spreadsheet of recipe videos that you link to from your website. Over the years the links came from many places. Your column has these six kinds of line:

  • youtu.be/ID1?si=Xy12 (copied from the phone app)
  • youtube.com/shorts/ID2 (a Short)
  • youtube.com/watch?v=ID1&t=45s (the same video as line one, with a time)
  • youtube.com/embed/ID3 (from an old embed code)
  • youtube.com/playlist?list=PL... (your recipe playlist)
  • "see the Sunday roast video" (a note, not a link)

Paste the whole column and tick Check each video. The top line reads "3 unique video IDs from ... items, 1 duplicate removed", because ID1 appeared twice. The table shows ID1, ID2 and ID3 in that order. The playlist ID appears under the table with a link to list its videos. The note words appear under "without a YouTube video". If ID3 comes back as Deleted, private or invalid, you know the old embed on your site shows an error, and you can replace it. Download the CSV and you have every ID, its type, a clean link, your original line and its status, ready to paste back next to your sheet.

Reading your ID list and what to do next

Each export button fits a different job:

  • Copy IDs gives one ID per line, ready for a spreadsheet column.
  • Copy comma-separated gives ID,ID,ID, the format the YouTube API takes when you look up several videos in one call.
  • Copy clean links gives full watch links with ?si= and other extras removed, plus t= if you ticked Keep start times.
  • Copy short links gives youtu.be links, handy for descriptions and social posts.
  • The CSV keeps your original text next to each ID, so you can match rows back to your own sheet.

Next steps depend on why you needed the IDs:

  • To put a video on a website, the embed address is youtube.com/embed/ID. The embed code generator builds the full code, with start time, size and captions.
  • To get a video's thumbnail in every size it has, use the thumbnail downloader. Our guide to the YouTube thumbnail size explains why the largest size is missing on some videos.
  • To send viewers to one moment, make a link with the timestamp link generator.
  • To see one video's numbers in detail, open it in video stats.
  • If you plan to look up many IDs with your own API key, the API quota calculator shows how far your daily quota goes.

YouTube's official rules that matter here

A few facts from YouTube's own documentation, current as of November 2026:

  • The ID never changes. The API defines the ID as the one YouTube uses to identify the video. A new title or thumbnail does not change it. A re-upload gets a new ID.
  • Privacy has three settings: public, unlisted and private (videos resource, status.privacyStatus). Only private videos are hidden from people who have the link.
  • Looking up videos costs quota. The videos.list method "has a quota cost of 1 unit" per call, and takes a comma-separated list of IDs (videos.list). New API projects get a default of 10,000 units a day (API getting started).
  • Embeds use the ID. The player address is youtube.com/embed/ followed by the video ID, with options such as start and end added after it (YouTube embedded player parameters). The youtube-nocookie.com address is YouTube's privacy-enhanced mode.
  • Thumbnails are not all the same. YouTube's API says the largest thumbnail sizes are "available for some videos" only, so not every ID has a 1280 by 720 image.

Ways to find a video ID, compared

MethodBest forWeak spot
Read the address barOne video on a computerSlow for many links, easy to copy ?si= or &t= by mistake
YouTube StudioYour own videosOnly your channel, one at a time
Share button on the phoneOne video on the goLink comes with ?si= that you must cut off
Spreadsheet formulaA tidy column of normal linksMisses encoded and unusual links, no status check
Your own code or APIDevelopers with a keyNeeds setup and quota
This extractorMany links, messy text, dead link checksCheck limited to 200 videos a run

The table is a guide to picking the quickest way for your job. If you have one link on your screen, reading it yourself is fine. Once you have more than a handful, or links from different places, pasting them here saves time and avoids copy mistakes.

In YouTube Studio

For your own videos, open YouTube Studio and go to Content. Click a video to open its details page. The ID is in the browser address, in a link like studio.youtube.com/video/ID/edit. On the right of the details page you also see the video link, which you can copy.

On your phone

In the YouTube app, tap Share under the video and then Copy link. Paste that link here. The part after youtu.be/ and before the ? is the ID. Do not take "everything after the last slash", because that also grabs the ?si= part.

In Google Sheets

For a column of links in a spreadsheet, a regular expression formula works for most normal links. For example, in a cell next to a link in A2: =REGEXEXTRACT(A2, "(?:v=|youtu\.be/|shorts/|embed/|live/)([A-Za-z0-9_-]{11})"). It returns the 11 characters after the first marker it finds. It will miss encoded app links and a few unusual shapes, and it cannot tell you if a video still exists. For those, paste the whole column here and use the CSV.

What you can build from a video ID

Once you have the 11 character ID, you can rebuild every common link by hand. Take the ID dQw4w9WgXcQ as an example.

What you needLink patternExample
Watch pageyoutube.com/watch?v=IDyoutube.com/watch?v=dQw4w9WgXcQ
Short linkyoutu.be/IDyoutu.be/dQw4w9WgXcQ
Embed playeryoutube.com/embed/IDyoutube.com/embed/dQw4w9WgXcQ
Thumbnail, 480 x 360i.ytimg.com/vi/ID/hqdefault.jpgi.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg

The embed pattern is the one in YouTube's player documentation. For thumbnails, the Data API thumbnails page lists five sizes: default 120 x 90, medium 320 x 180, high 480 x 360, standard 640 x 480 and maxres 1280 x 720. The last two exist for some videos only, so a 1280 x 720 image may be missing on an older upload.

You do not have to type these out. The Copy clean links and Copy short links buttons build the first two for you. For the player code use the embed code generator, and for the images use the thumbnail downloader.

Mistakes to avoid with extracting video IDs

  • Keeping ?si= or &feature= on the ID. These are not part of the ID. An ID with them stuck on will fail in an API call.
  • Changing letter case. Some sheets and editors capitalise the first letter of a cell. One changed letter breaks the ID.
  • Mixing up the playlist and the video. A link with both v= and list= points to a video inside a playlist. Use the playlist page link if you want the playlist.
  • Taking a clip code for a video ID. Clip links do not contain the video ID.
  • Assuming a link still works. A clean ID can still point to a deleted or private video. Run the check before you publish a list.
  • Re-uploading and keeping old links. A re-upload gets a new ID, so old links and embeds still point to the old video.

What the ID extractor does not tell you

  • The check covers the first 200 unique videos in one run. For a longer list, run it in parts.
  • The check uses a small free daily allowance per visitor. If it is used up, you still get every ID, and a note says the check could not run. Signing in for free raises the allowance.
  • When the live check is not possible, the tool falls back to TubeMind's saved data. Videos it has never seen are marked "Not in our saved data", not deleted.
  • Deleted, private and invalid IDs look the same to the API, so the tool cannot tell you which of the three it is.
  • A separate word of exactly 11 characters is read as a bare ID only if it has a capital letter, number, hyphen or underscore, so plain words are skipped. In messy text, an 11 character word with a capital letter, like a name, can still show up as an ID. Ticking Check each video marks it as invalid.
  • Old channel links in the /c/ or /user/ form go to the channel list too, and the Get channel IDs link looks them up.

Urdu / Hindi mein: YouTube video ki ID kaise nikaalein?

Video ka link yahan paste karein, chahe ek ho ya sau. Watch, youtu.be, Shorts, live, embed aur app se share kiye hue links sab chalte hain. Tool har video ki ID nikaal deta hai, duplicate hata deta hai aur ?si= jaise faltu hisse saaf kar deta hai. ID hamesha 11 characters ki hoti hai aur capital aur small letters ka farq rakhti hai, is liye ise khud mat badlein. "Check each video" tick karein to har video ka title, views aur yeh bhi pata chal jaata hai ke video delete ya private to nahi ho gayi. Phone par Share, phir Copy link dabayein, link yahan paste karein, aur youtu.be/ ke baad aur ? se pehle wala hissa aapki ID hai.

Questions

What is a YouTube video ID?

It is the code YouTube uses to uniquely identify one video. In a watch link it is the part after v=, for example the 11 characters in youtube.com/watch?v=dQw4w9WgXcQ.

How do I find the video ID from a YouTube URL?

Look for the 11 characters after v=, youtu.be/, /shorts/, /live/ or /embed/, and stop at any ? or &. Or paste the link here and the tool does it for you.

Where is the ID in a Shorts link?

Right after /shorts/, for example youtube.com/shorts/ID. The same ID also works in a normal watch link.

Are YouTube video IDs always 11 characters?

Every video ID today is 11 characters of letters, numbers, - and _. YouTube does not publish this as a fixed rule, so the tool can also check IDs with the API.

Are YouTube video IDs case sensitive?

Yes. Changing one capital letter gives a different ID, which usually points to no video at all.

Can a video ID change?

No. The ID stays the same when you change the title, thumbnail or description. Only a re-upload gets a new ID.

Can I extract IDs from many links at once?

Yes. Paste hundreds of links or any text that contains them. Duplicates are removed and your order is kept.

How do I check if a video was deleted or made private?

Tick Check each video. Rows that YouTube no longer returns are marked Deleted, private or invalid, and the CSV has a status column.

Do unlisted videos show as available?

Yes. Anyone with the link can watch an unlisted video, so the check shows it as Available. Only private, deleted and invalid IDs are flagged.

How many videos can the check look up?

Up to 200 unique videos per run. For longer lists, run the check in parts.

What is ?si= in YouTube links?

It is a part added when you copy a link with the Share button. It is not part of the video ID, and the tool removes it from clean links.

Can I keep the start time in clean links?

Yes. Tick Keep start times and the t= value stays on the clean links.

Does it work for playlists and channels?

They are listed separately under the table. Playlists link to a tool that lists their videos, and channels link to the channel ID finder.

Why are clip links skipped?

Clip links use their own clip code and do not contain the video ID. Copy the link of the full video instead.

How do I find my own video ID in YouTube Studio?

Open Studio, go to Content and click the video. The ID is in the address bar, in studio.youtube.com/video/ID/edit.

How do I find a video ID on my phone?

Tap Share under the video, then Copy link. The ID is the part after youtu.be/ and before the ?.

What is the difference between a video ID and a channel ID?

A video ID is 11 characters and names one video. A channel ID starts with UC, is 24 characters long and names a whole channel.

Is this video ID extractor free?

Yes, and no login is needed. Extraction runs in your browser. The optional check uses the YouTube API through TubeMind with a daily free allowance.

YouTube video ki ID kaise nikaalein?

Link yahan paste karein. ID woh 11 characters hain jo v= ke baad, youtu.be/ ke baad ya /shorts/ ke baad aate hain, ? se pehle.

How do I get a thumbnail from a video ID?

Paste the video link or ID into the TubeMind thumbnail downloader. YouTube's API lists up to five sizes, from 120 x 90 to 1280 x 720, and the two largest exist for some videos only.

Related tools

Ask about this page in ChatGPT · Claude · Perplexity

All 74 free YouTube tools