YouTube URL Parser

Parse YouTube video IDs from URLs.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a YouTube link and press Run to get the video ID. The result is a small JSON object with the ID, which you can reuse for thumbnails, embeds or timestamps.

How to use

1
Step 1
Paste the YouTube link or ID into the input.
2
Step 2
Press Run.
3
Step 3
Copy the videoId from the result.

How it works

The ID is the 11-character code made of letters, digits, hyphen and underscore. It is matched in links of the form watch?v=ID, youtu.be/ID, embed/ID, shorts/ID and live/ID (also youtube-nocookie.com and m.youtube.com), with v= in any position, or accepted directly if you paste just the ID.

Worked example

A Shorts link

Input
https://www.youtube.com/shorts/dQw4w9WgXcQ
Output
{ "videoId": "dQw4w9WgXcQ" }
Walkthrough
The 11 characters after /shorts/ are the video ID.

Limitations

  • Returns the video ID only: no timestamp, playlist or channel data.
  • Playlist-only links without a video ID are not recognised.
  • Does not check that the video exists.

Questions

How do I find a YouTube video ID?
It is the 11 characters after v= in a watch link or after youtu.be/. Paste the link to have it extracted.
Does it work with Shorts?
Yes. Shorts links are recognised and their video ID is extracted.
What if I paste only the ID?
An 11-character ID is accepted as is.

Features

  • Watch, short, embed and Shorts links
  • JSON result
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Intro to Google Search Console

    Google Search Central

    UTM and preview tools connect to how links get discovered.

    Watch on YouTube
  • How Image Compression Works

    Leo Isikdogan

    Keep social assets light without looking soft.

    Watch on YouTube