New YouTube Partner Program rules: Feb 1, 2027Date announced, hour not (as of Nov 7, 2026). New applicants need 8,000 watch hours or 20 million Shorts views; partners must accept the new terms by Jan 31, 2027.

2Months9Days

Get the Video ID From a YouTube Link

A YouTube video ID is the 11 characters after watch?v=, youtu.be/, shorts/, embed/ or live/ in its link. One formula pulls it from any of them: in Google Sheets =REGEXEXTRACT(A2,"(?:v=|v%3D|youtu\.be/|shorts/|embed/|live/|/v/|/e/|/w/|watch/)([A-Za-z0-9_-]{11})"), which gave the right ID for all 22 link forms Vi.ki tested on Nov 20, 2026.

A YouTube video's ID is the 11 characters that follow watch?v=, youtu.be/, shorts/, embed/ or live/ in its link, and one formula pulls it out of any of them: in Google Sheets, with the link in A2, =REGEXEXTRACT(A2,"(?:v=|v%3D|youtu\.be/|shorts/|embed/|live/|/v/|/e/|/w/|watch/)([A-Za-z0-9_-]{11})"). For https://youtu.be/jNQXAC9IVRw?si=AbCdEfGhIjKlMnOp it returns jNQXAC9IVRw, and Vi.ki ran the same pattern on Nov 20, 2026 over 22 forms of video link, from m.youtube.com to attribution_link, with the right ID every time. With a column of IDs, ="https://www.youtube.com/watch_videos?video_ids="&TEXTJOIN(",",TRUE,B2:B51) turns up to 50 of them into one playlist link (Make a Playlist From Video IDs).

Next: what the playlist link accepts and where it stops, the same IDs in a player on your site or each ID's title and channel, no key needed. To skip the formula, paste the links into the YouTube Link Converter.

The pattern, part by part

Part What it does
(?: ... ) A group that must match but is not returned
v= The ID after watch?v=, also when v= comes after app=desktop& or list=...&
v%3D The same, encoded, inside an attribution_link?u=/watch%3Fv%3D...
youtu\.be/ The short link (Short Links youtu.be and yt.be); \. is a real dot
shorts/, embed/, live/ A Short, the embed player (both youtube.com and youtube-nocookie.com) and a live link
/v/, /e/, /w/, watch/ The older forms YouTube still answers (Every YouTube URL Format)
([A-Za-z0-9_-]{11}) The ID: 11 characters from 64 letters, digits, - and _ (How Many YouTube Video IDs Are There), returned

Everything after the ID (?si=, &t=90, &list=, &feature=share) is left behind, because the ID stops at 11 characters.

The same pattern in other tools

Tool Formula or line
Google Sheets =REGEXEXTRACT(A2,"(?:v=|v%3D|youtu\.be/|shorts/|embed/|live/|/v/|/e/|/w/|watch/)([A-Za-z0-9_-]{11})")
Excel (Microsoft 365, Excel for the web) The same with ,2 before the last bracket: =REGEXEXTRACT(A2,"...",2)
Python re.search(r"(?:v=|v%3D|youtu\.be/|shorts/|embed/|live/|/v/|/e/|/w/|watch/)([A-Za-z0-9_-]{11})", url).group(1)

Google Sheets returns the bracketed part when a pattern has one, and uses Google's RE2 rules (REGEXEXTRACT, Google Docs Editors Help, read Nov 20, 2026). Excel's REGEXEXTRACT returns the whole match unless its third argument is 2, "Return capturing groups from the first match as an array" (REGEXEXTRACT function, Microsoft Support, read Nov 20, 2026), so without the ,2 it hands back youtu.be/jNQXAC9IVRw instead of the ID.

What we tested

Run with Python's pattern engine on Nov 20, 2026, the ID jNQXAC9IVRw ("Me at the zoo") unless named:

Link Result
https://www.youtube.com/watch?v=jNQXAC9IVRw jNQXAC9IVRw
youtube.com/watch?v=jNQXAC9IVRw (no https) jNQXAC9IVRw
https://m.youtube.com/watch?v=jNQXAC9IVRw jNQXAC9IVRw
.../watch?app=desktop&v=jNQXAC9IVRw jNQXAC9IVRw
https://youtu.be/jNQXAC9IVRw?si=AbCdEfGhIjKlMnOp jNQXAC9IVRw
https://youtu.be/jNQXAC9IVRw?t=10 jNQXAC9IVRw
.../watch?v=jNQXAC9IVRw&t=10s jNQXAC9IVRw
.../watch?v=jNQXAC9IVRw&list=PLbpi6...&index=1 jNQXAC9IVRw
.../watch?list=PLbpi6...&v=jNQXAC9IVRw jNQXAC9IVRw
https://www.youtube.com/shorts/0HAETg7L15o 0HAETg7L15o
https://youtube.com/shorts/0HAETg7L15o?feature=share 0HAETg7L15o
.../embed/jNQXAC9IVRw?start=5 jNQXAC9IVRw
https://www.youtube-nocookie.com/embed/jNQXAC9IVRw jNQXAC9IVRw
https://www.youtube.com/live/4t4AQ15yj1M?si=x 4t4AQ15yj1M
.../v/jNQXAC9IVRw, .../e/..., .../w/..., .../watch/... jNQXAC9IVRw (four links)
https://music.youtube.com/watch?v=jNQXAC9IVRw&feature=share jNQXAC9IVRw
.../attribution_link?u=/watch%3Fv%3DjNQXAC9IVRw jNQXAC9IVRw
.../watch?v=jNQXAC9IVRw&feature=youtu.be jNQXAC9IVRw
https://www.youtube.com/@jawed No match: a channel, not a video
.../playlist?list=PLbpi6... No match: a playlist
https://youtu.be/@LofiGirl No match
jNQXAC9IVRw on its own No match: nothing to look after

The no-match rows are what you want: a channel or playlist link in the list shows as an error instead of a wrong ID that would break the playlist link (one bad ID made watch_videos drop the whole list again in our Nov 20, 2026 request). A cell that already holds a bare ID needs =IFERROR(REGEXEXTRACT(...),A2) around the formula to keep it.

A Short's ID is the same ID the watch page uses. Freedom!'s Sep 14, 2023 video turns a Short into a regular video by replacing "shorts" with "watch" in its address and keeping the rest, which is why shorts/ and v= can sit side by side in one pattern.

  1. Paste the links in column A, one per row, from A2 down.
  2. In B2 type the Google Sheets formula above and fill it down.
  3. In C1 type ="https://www.youtube.com/watch_videos?video_ids="&TEXTJOIN(",",TRUE,B2:B51).
  4. Open the address in C1. YouTube answers with a redirect to watch?v=<first ID>&list=TLGG..., the new list.

On Nov 20, 2026 the three-ID link this builds opened an "Untitled List" of 3, and a 60-ID link opened a list of 50, the cap Make a Playlist From Video IDs records, so stop the range at B51.

Where we disagree

Tongbos_EN's Oct 6, 2022 tutorial, the first match when Vi.ki searched YouTube for the task on Nov 20, 2026, uses REGEXEXTRACT with a pattern that takes everything after the = sign. That works on a bare watch?v=ID link and nothing else: on watch?v=ID&t=10s it returns ID&t=10s, on a youtu.be link (no =) it returns an error, and on a youtu.be link with ?si= it returns the share code instead of the ID. Matching the 11 ID characters themselves, as above, avoids all three.

Sources

Moments

Quickly convert any YouTube Short to a video in 1-step: Replace "shorts" with "watch" in the URL!

Freedom!

  1. A Short's ID is the same ID the watch page uses. Freedom!'s Sep 14, 2023 video turns a Short into a regular video by…

How to Extract Video ID from Youtube URL in Google Sheets

Tongbos_EN

  1. Tongbos_EN's Oct 6, 2022 tutorial, the first match when Vi.ki searched YouTube for the task on Nov 20, 2026, uses…

See also

About this page

Last updated Nov 20, 2026 by the Vi.ki team. Page text CC BY-SA 4.0.

Edit History

Hotkeys

/
Jump to the search box
? or Ctrl + /
Open this list
Esc
Close this list, the photo viewer, or the account menu

Video

Space or K
Play or pause
← →
Back or forward 5 seconds
J L
Back or forward 10 seconds
0 to 9
Go to 0% to 90% of the video
, .
Previous or next frame, while paused
M
Mute or unmute
C
Captions on or off
F
Full screen on or off
A D
Previous or next moment

Photo viewer

← → or A D
Previous or next photo
↑ ↓ or W S
Previous or next photo
Home End
First or last photo
I
Show or hide the photo's info
Z
Clickless on or off: a pointer over a thumbnail shows it
N
Compare with the last photo: back to the one shown before this, and N again comes back
Q
Move the thumbnails to the next edge: top, bottom, left and round
, or Ctrl + ,
Open or close the viewer's settings
V
Clickless pan: a zoomed photo follows the pointer, rather than being dragged
Shift
Browse on or off
B
Show or hide the button bar
T
Show or hide the thumbnails
1
100% zoom on or off
0
Rate the photo as no opinion; again takes the answer back
+ -
Rate the photo a step higher or lower
F
Full screen: the photo alone. F again puts everything back.
Back to top