YouTube video ID finder

Paste one YouTube link or many and get each video's ID, its watch, short and embed links, and the addresses of its thumbnails, ready to copy.

Example links: paste your own

Different videos
2

3 videos found, 2 different. 2 entries are not YouTube videos.

Free, no sign-up. It runs in your browser: what you type is not sent anywhere.

Checked on 2026-11-19.

How to use it

Paste the links into the box: one per line, or a whole block of text such as an email, a column copied from a spreadsheet or the HTML of a page with embedded videos. The table fills in as you type. For each video you get its ID, three links to it (the watch page, the short youtu.be link and the embed address for a web page) and the addresses of its thumbnail images in three sizes.

Copy IDs puts every different ID on the clipboard, one per line, in the order they first appear; Copy watch links does the same with full watch links. A video that appears twice gets two rows in the table and one line in what you copy. A link or a single word that is not a YouTube video gets a row that says so, with the line it came from, so you can fix your list. A line of plain text with no link in it is skipped.

A video ID is the part of a link that names the video: in https://www.youtube.com/watch?v=jNQXAC9IVRw it is jNQXAC9IVRw. The tool finds it in these shapes, where VIDEO_ID stands for the ID:

LinkExample
Watch page, also on m.youtube.com and music.youtube.comhttps://www.youtube.com/watch?v=VIDEO_ID
Short linkhttps://youtu.be/VIDEO_ID
Shortshttps://www.youtube.com/shorts/VIDEO_ID
Livehttps://www.youtube.com/live/VIDEO_ID
Embed, also on www.youtube-nocookie.comhttps://www.youtube.com/embed/VIDEO_ID
Old embedhttps://www.youtube.com/v/VIDEO_ID
The ID on its ownVIDEO_ID

Whatever follows the ID is left out: a time, a playlist, a share code or a tracking tag. The address may be written without https://, and links inside HTML or Markdown are found too. The short link is YouTube's own short form of the watch link: when YouTube launched youtu.be in December 2009, it described it as a shortener "for YouTube video links -- and nothing but YouTube links", made by putting http://youtu.be/ in place of http://www.youtube.com/watch?v= (YouTube blog). The embed address is the one in Google's player documentation, https://www.youtube.com/embed/VIDEO_ID, and YouTube Help describes the privacy-enhanced version on www.youtube-nocookie.com (Embed videos & playlists).

The thumbnail addresses

The YouTube Data API reference lists these thumbnail sizes for a video (Thumbnails, Videos):

NameWidth × heightAddress in the table
default120 × 90Yes: default.jpg
medium320 × 180Yes: mqdefault.jpg
high480 × 360Yes: hqdefault.jpg
standard640 × 480No; available for some videos
maxres1280 × 720No; available for some videos
fhd, qhd, uhd1920 × 1080, 2560 × 1440, 3840 × 2160No; available for some videos

The three addresses follow the sample responses in Google's YouTube Data API overview, where a video's default, medium and high thumbnails are https://i.ytimg.com/vi/7lCDEYXw3mM/default.jpg, mqdefault.jpg and hqdefault.jpg. The larger sizes exist only for some videos, and the documentation gives no address pattern for them, so this tool does not guess one (the YouTube thumbnail downloader lists two addresses for them that are not in the documentation, marked as such). For those, ask the Data API's videos.list for the video: the snippet.thumbnails map in its answer holds an address for each size the video has. The reference also says that sizes can differ between videos, depending on the resolution of what was uploaded, and that a Short with a custom thumbnail has a 9:16 version as well.

Where it stops

  • It does not check that a video exists. It sends nothing anywhere, so it cannot ask YouTube: the ID of a deleted or private video gets its links like any other.
  • Any 11 letters, digits, hyphens and underscores on a line of their own count as an ID, as they do for the API. A word of that length, such as programming, passes too.
  • Playlist, channel, search and clip links contain no video ID and get a row that says so. A watch link that also names a playlist (watch?v=…&list=…) does contain one and gives that video.
  • Shortened links from other services hide the address they lead to. Opening them would mean sending a request, so they count as not YouTube.
  • A video in another site's own player is found only when the YouTube address itself is in the text you paste.

Get the data automatically

An ID tells you which video; it does not tell you what is in it. The YouTube video endpoint takes a watch, youtu.be, Shorts, embed or live link, or the bare ID, and returns the video's title, exact view, like and comment counts, duration, publish time, chapters, its thumbnailUrl and its channel. For a file of links, one request per line:

Python
import os
import requests

with open("links.txt") as f:
    links = [line.strip() for line in f if line.strip()]

for link in links:
    res = requests.get(
        "https://pipefetch.com/v1/youtube/video",
        params={"video": link},
        headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
        timeout=90,
    )
    if res.status_code == 404:
        print(link, "not found")  # not charged
        continue
    res.raise_for_status()
    video = res.json()["data"]
    print(video["videoId"], video["viewCount"], video["title"])

Each request costs 1 credit. A video that does not exist, is private or is restricted answers 404 video_not_found and costs nothing, and so does a line that is not a video link, which answers 400 before anything is charged; running the list through this tool first keeps the loop from stopping at raise_for_status(). For what is said in the videos, the transcript endpoint takes the same links and returns the transcript as plain text, timed segments, SRT or WebVTT.

Questions

What is a YouTube video ID?

The part of a link that names the video: what follows v= in a watch link, or youtu.be/ in a short link. For https://www.youtube.com/watch?v=jNQXAC9IVRw it is jNQXAC9IVRw. The IDs this tool and the API accept are 11 characters of letters, digits, hyphens and underscores.

How do I find the ID of a YouTube Short?

It is the part after /shorts/ in the Short's link. Paste the link here and the tool reads it out, with the other links and the thumbnail addresses.

How do I get a YouTube video's thumbnail?

Paste the link here: the table gives the addresses of the 120 × 90, 320 × 180 and 480 × 360 images. Larger sizes exist for some videos only: the YouTube thumbnail downloader on this site lists two larger addresses, marked as not in Google's documentation, and the YouTube Data API's videos.list returns the address of every size a video has.

Can it tell whether a video still exists?

No. It sends nothing to YouTube, so a deleted or private video gets links like any other. The video endpoint answers 404 video_not_found for those, and does not charge for it.

Why does my link say it is not a video?

It points to something that has no video ID in it, such as a channel, a playlist, a search or a clip, or it is on another site. A watch link that also names a playlist still gives its video.

Does this tool send what I paste anywhere?

No. It runs in your browser, and nothing you paste leaves the page.

Need this for many accounts, or in your code? The Pipefetch API returns the data as JSON, one GET request at a time. Get an API key with 100 free credits, no card needed.

APIs that return this data

Guides

Similar tools

More free tools

All free tools