Skip to main content

YouTube Shorts Downloader

Save public YouTube Shorts videos directly to your device in high-quality vertical MP4 format.

Shorts Downloader


Technical Architecture: Reverse-Engineering YouTube Shorts Stream Extraction​

YouTube Shorts are 9:16 vertical videos delivered via Google's global streaming infrastructure. Under the hood, YouTube packages video streams into two formats: progressive containers (where audio and video are pre-multiplexed into a single file) and adaptive DASH streams (where video and audio tracks are downloaded as separate chunks).

The YouTube Shorts Downloader routes requests through /api/videoDownloader to resolve stream descriptors and extract high-bitrate progressive MP4 streams.


1. URL Normalization & Video ID Extraction​

Shorts are shared across three distinct URL topologies. The parser normalizes all formats to extract the canonical 11-character video ID:

function extractYouTubeId(url) {
const patterns = [
/youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/i,
/youtu\.be\/([a-zA-Z0-9_-]{11})/i,
/youtube\.com\/watch\?v=([a-zA-Z0-9_-]{11})/i,
/youtube\.com\/embed\/([a-zA-Z0-9_-]{11})/i
];

for (const regex of patterns) {
const match = url.match(regex);
if (match) return match[1];
}
return null;
}

2. Stream Resolution & Itag Selection​

YouTube designates specific itag values to describe resolution, container format, and audio-video packaging:

// api/videoDownloader.js (stream format filtering)
function selectBestProgressiveFormat(formats) {
// Filter for formats that contain BOTH video and audio in an MP4 container
const progressiveMp4 = formats.filter(
f => f.hasVideo && f.hasAudio && f.container === 'mp4'
);

// Sort by vertical height descending (1080p -> 720p -> 360p)
progressiveMp4.sort((a, b) => (b.height || 0) - (a.height || 0));

return progressiveMp4[0] || null;
}

3. YouTube Shorts Stream Format Reference​

Quality / TargetContainerResolution (px)Audio BitrateTypical Use Case
1080p VerticalMP4 (H.264 / AAC)1080 × 1920 (9:16)128 kbpsFull HD mobile displays, video editing
720p HDMP4 (H.264 / AAC)720 × 1280 (9:16)128 kbpsStandard mobile playback, fast download
480p SDMP4 (H.264 / AAC)480 × 854 (9:16)96 kbpsData-saver mobile connections
Audio-OnlyM4A (AAC) / WebMAudio stream128 – 160 kbpsBackground sound / music extraction

4. Client-Side Security & Zero-Server Data Guarantee​

  • No Intermediary Storage: Streams are parsed statelessly. Video files are downloaded directly from Google CDN endpoints or piped via memory streams.
  • No Telemetry Tracking: Submitted video links and download histories are not recorded or shared with third parties.
  • Ad-Free & Safe: Zero malicious redirects, malware prompts, or fake download buttons.

Get notified about updates to this tool

No spam. Just high-quality updates about new features and guides.