Skip to tool
ecech.
🎥 YouTube Creator Tools

Free YouTube URL to Video ID Extractor for Every Link Format

Paste any YouTube link — watch, youtu.be, embed, Shorts, live, with or without a playlist attached — and get the clean 11-character ID plus every other URL form.

Video ID

Every URL form for this video

Advertisement

How the calculation works

Five URL shapes, one identifier youtube.com/watch?v= dQw4w9WgXcQ &t=42s&list=PL... youtu.be/ dQw4w9WgXcQ ?t=42 youtube.com/embed/ dQw4w9WgXcQ youtube.com/shorts/ dQw4w9WgXcQ youtube.com/live/ dQw4w9WgXcQ The ID itself exactly 11 characters A-Z a-z 0-9 - _ base64url alphabet, so a hyphen or underscore inside it is normal and must not be stripped Everything else in the URL is routing and tracking. The ID is the only part that identifies the video.

How to Use This Tool

Every YouTube video has one permanent identifier: an eleven-character string that appears in every link shape YouTube has ever used. Extracting it by hand is easy until you meet a Shorts link, a live link, a mobile link with a playlist attached, or a share link that has picked up four tracking parameters on the way. This tool handles all of them and tells you which shape it recognised.

What counts as a valid ID

The ID is exactly eleven characters from the base64url alphabet: letters, digits, hyphen and underscore. That last detail matters more than it looks. A hyphen or underscore inside the ID is completely normal, so naive extraction code that strips punctuation will quietly corrupt about one ID in eight. If you are writing your own parser, that is the bug you will hit.

One real share link, taken apart youtube.com /watch ?v=dQw4w9WgXcQ &t=42s &si=xK2p&pp=ygUF host path the video start time share tracking The si parameter is a share-source token that identifies who sent you the link. Strip it before publishing a link anywhere public.
Only the highlighted part identifies the video. The amber part is useful; the red part is tracking you probably do not want to republish.

Bulk extraction

Paste an entire block of text — a description, a chat log, a spreadsheet column — and every ID in it is pulled out at once, de-duplicated, in the order it appeared. This is the fastest way to turn a messy list of shared links into something you can feed to a script or paste into a playlist builder.

Getting other formats back

Once the ID is identified you also get every URL form built back from it: the canonical watch link, the short youtu.be form, the embed URL, the Shorts URL, the thumbnail addresses and a no-cookie privacy embed. If a start time was present in your input it is carried through, converted into whichever parameter that format expects — t for watch links, start for embeds, which is a difference that trips people up regularly.

A privacy note about share links

Links copied from the YouTube app carry an si parameter. That is a share-attribution token tied to the account that copied it. It is harmless in a private message and inappropriate in a public post or a client deliverable, because it links the published URL back to a specific person. Rebuilding the URL from the ID, as this tool does, removes it cleanly.

Advertisement

Frequently Asked Questions

How long is a YouTube video ID?
Exactly eleven characters, drawn from the base64url alphabet: A-Z, a-z, 0-9, hyphen and underscore. It has been eleven characters since 2005 and there is no announced plan to change it. Anything longer or shorter in a URL is a playlist ID, a channel ID or a tracking token, not a video.
Why does my extraction code break on some IDs?
Almost always because it strips punctuation. Hyphens and underscores are legal characters inside an ID, so a regex that only allows letters and digits will silently truncate roughly one ID in eight. Match [A-Za-z0-9_-]{11} instead.
Does this work with Shorts and live links?
Yes. youtube.com/shorts/ID and youtube.com/live/ID both carry the same eleven-character ID as a normal watch link, and the tool recognises both. That also means a Shorts link can be converted into a standard watch URL, which is the easiest way to watch a Short in the full player.
What is the si parameter in links I copy from the app?
It is a share-source token that attributes the share back to the account that copied the link. It is fine in a private message but should be removed before publishing a URL publicly or handing one to a client. Rebuilding the URL from the ID alone removes it.
Can this tool get the video title or view count?
No, and no purely client-side tool can. Those figures require the YouTube Data API and an API key, which means a server. This tool does string parsing only, which is why it works instantly, offline, and without you handing your browsing to anyone.
Why is the timestamp parameter different between formats?
Watch and youtu.be links use t, which accepts either seconds or a form like 1m30s. Embed URLs use start, which accepts whole seconds only. Copying a t value straight into an embed silently does nothing, which is a common and confusing bug. The tool converts between them.
Is anything I paste sent anywhere?
No. All parsing happens in your browser with regular expressions. The only external request is the thumbnail image, which loads directly from YouTube's own servers the same way it would on any page that embeds a video.

What people usually need next

Picked by hand, not by algorithm.

Related tools in YouTube Creator Tools

Browse all YouTube Creator Tools tools