Every YouTube video has an ID of exactly 11 characters, such as dQw4w9WgXcQ, and every link format, whether watch, youtu.be, Shorts or embed, is built around it. Once you have the ID, you can make any other kind of link, an embed or a thumbnail address from it.
Spotting the ID by eye is easy in a tidy link but harder in one full of si=, pp= or playlist parameters, and slow when you have a spreadsheet of hundreds. The YouTube URL & Video ID Extractor parses them all in your browser and gives you the IDs, clean links and thumbnail URLs.
Link formats it understands
The extractor recognises the formats you are likely to meet in the wild:
| Link format | Example pattern | Where the ID sits |
|---|---|---|
| Watch page | youtube.com/watch?v=ID | After v= |
| Short link | youtu.be/ID | Right after the domain |
| Shorts | youtube.com/shorts/ID | After /shorts/ |
| Live | youtube.com/live/ID | After /live/ |
| Embed | youtube.com/embed/ID or youtube-nocookie.com/embed/ID | After /embed/ |
| Mobile and Music | m.youtube.com, music.youtube.com | As for watch links |
| Playlist | youtube.com/playlist?list=… | No video; returns the playlist ID |
It also reads start times from t=, start= and time_continue= parameters, keeps any playlist ID it finds, and accepts a bare 11-character ID on its own line.
How to extract video IDs
- Open the YouTube URL & Video ID Extractor.
- Paste your links into YouTube links (one per line). You can paste one link or a whole column from a spreadsheet.
- Leave Remove duplicate videos ticked unless you need a row for every line.
- Press Extract. If you just want to see how it behaves, press Try examples to load a mixed sample, including a channel link and a line of plain text.
- Check the summary badges, which show how many lines are valid and how many are invalid.
- Use Copy IDs to copy every video ID on its own line, or Export CSV for a full spreadsheet.
The results table lists each line's number, status, video ID, playlist, start time and link type. Invalid rows say why they failed, for example "Not a YouTube link" or "This YouTube link is not a video or playlist".
What you get for each video
Below the table, each valid line gets a card with ready-to-copy links:
- Canonical, the plain watch link with nothing extra.
- Short, the youtu.be version.
- Embed and No-cookie, for use inside an iframe.
- Shorts, the vertical-player address.
- With start and In playlist, when the original link had a time or a playlist.
A collapsible Thumbnail image URLs section lists the five standard image addresses on i.ytimg.com:
| Name | Size (px) |
|---|---|
| default | 120 × 90 |
| mqdefault | 320 × 180 |
| hqdefault | 480 × 360 |
| sddefault | 640 × 480 |
| maxresdefault | 1280 × 720 |
These are just text addresses. Nothing is fetched from YouTube until you press Show thumbnails on a card, or Show thumbnails (first 10) in the toolbar. At that point the images load from YouTube's servers, and any size that does not exist for that video is marked "not available".
The CSV export includes, for every line, the input, a valid flag, video ID, playlist ID, start in seconds, type or error, watch, short, embed and Shorts URLs, and the hq and maxres thumbnail addresses.
Example: tidying a messy link
Say a colleague sends you https://m.youtube.com/watch?v=aqz-KE-bpKQ&list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI&index=2. After pressing Extract, the table shows the video ID aqz-KE-bpKQ, the playlist ID and the type "Watch page · mobile site". The card then offers:
- a canonical link,
https://www.youtube.com/watch?v=aqz-KE-bpKQ, with the mobile prefix and index removed; - a short link,
https://youtu.be/aqz-KE-bpKQ; - an "In playlist" link that keeps the list for anyone who wants to continue watching.
Similarly, a youtu.be link carrying ?si=abc123&t=42 is reduced to its ID, with the 42-second start time listed separately so you decide whether to keep it. The tracking code is simply not carried over.
Who finds this useful
- Website owners cleaning a list of video links before adding them to a page or database.
- Teachers and trainers who collected links from many people in different formats.
- Marketers auditing which videos are linked across campaigns, with duplicates removed.
- Developers who need IDs for the YouTube Data API or for building embeds programmatically.
- Anyone tidying a link copied from the app, where tracking codes like
si=make it long and messy.
Tips and limits
- Up to 2,000 lines are processed at once. Detailed cards are shown for the first 100, while the CSV includes everything.
- An ID that is not exactly 11 characters of A–Z, a–z, 0–9, hyphen or underscore is flagged, which catches links broken by copy-paste.
- Links without
https://, such asyoutu.be/..., are accepted and completed automatically. - Attribution links that wrap another YouTube address are unpacked to find the real video.
- Untick Remove duplicate videos when you need the output to line up row for row with an existing spreadsheet; the CSV then keeps one row for every non-empty line you pasted.
- Lines are read independently, so one broken link does not stop the rest of the list from being processed.
- Parsing works offline once the page has loaded, which is handy on patchy connections.
Mistakes to avoid
- Assuming a thumbnail URL means a video still exists. Deleted or private videos can still return a placeholder image; open the canonical link to confirm.
- Reusing other creators' thumbnails as your own. Thumbnails are part of their work. Link or embed instead, or design your own in the YouTube Thumbnail Maker.
- Expecting channel IDs. This tool is for videos and playlists, not channels or handles.
- Forgetting the start time. If a link had
t=, use the "With start" link rather than the canonical one when you want to keep it.
Next steps
Once you have an ID, the YouTube Embed Code Generator turns it into responsive, privacy-friendly embed code. If your list is in Excel, the Excel & CSV Converter can help you move the exported CSV back into a workbook. All of these run in your browser with no sign-up and no upload.