YouTube URL Parser
Parse YouTube video IDs from URLs.
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
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?
Does it work with Shorts?
What if I paste only the ID?
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 YouTubeHow Image Compression Works
Leo Isikdogan
Keep social assets light without looking soft.
Watch on YouTube
- YouTube thumbnail guidelines
Google Support
Thumbnail dimensions and best practices for video platforms.
- Responsive images
web.dev
Serving the right crop for feed versus story layouts.