Tools/Links & utilities

YouTube Video ID Extractor

Paste any YouTube URL shape, watch, youtu.be, Shorts, embed or live, and get the 11-character video ID back, along with the canonical watch link and the maxresdefault thumbnail URL.

Input
Video ID
Video ID
dQw4w9WgXcQ
Canonical watch URL
https://www.youtube.com/watch?v=dQw4w9WgXcQ
Thumbnail URL
https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg

Not every video has a maxresdefault thumbnail. If it 404s, drop back to hqdefault.jpg on the same path.

Recognised URL shapes
ShapeExample
Standard watchyoutube.com/watch?v=VIDEOID
Short linkyoutu.be/VIDEOID
Shortsyoutube.com/shorts/VIDEOID
Embedyoutube.com/embed/VIDEOID
Liveyoutube.com/live/VIDEOID
Bare IDVIDEOID (11 characters)
  • Free · no signup
  • Runs in your browser
  • Shows the working
What this does

Paste any YouTube URL shape, a standard watch link, youtu.be, Shorts, embed, or live, and we pull out the 11-character video ID.

Alongside the ID we return the canonical watch URL and the maxresdefault thumbnail URL, plus a reference table of every shape we recognise.

Use cases
  1. 01Get a clean video ID for an API call without reading page source.
  2. 02Confirm two differently formatted links point at the same video.
  3. 03Grab the thumbnail URL directly without opening the Thumbnail Downloader separately.
FAQ

Questions, answered.

Does every video have a maxresdefault thumbnail?

No. If it 404s, the same path with hqdefault.jpg instead of maxresdefault.jpg almost always works.

Do I need an account?

No.

What if my link doesn't match any shape?

Check it against the reference table shown. A bare ID must be exactly 11 characters.

From the notebook
Related tools