Please bookmark this page to avoid losing your image tool!

Social Media Video And Audio Downloader

(Free & Supports Bulk Upload)

Drag & drop your images here or

The result will appear here...
You can edit the below JavaScript code to customize the image tool.
function processImage(originalImg, defaultVideoUrl = "", theme = "dark") {
    // Determine colors based on theme
    const isDark = theme.toLowerCase() === "dark";
    const bgColor = isDark ? "#121212" : "#ffffff";
    const panelColor = isDark ? "#1e1e1e" : "#f5f5f7";
    const textColor = isDark ? "#ffffff" : "#1d1d1f";
    const secondaryTextColor = isDark ? "#a1a1a6" : "#86868b";
    const inputBg = isDark ? "#2c2c2e" : "#ffffff";
    const borderColor = isDark ? "#3a3a3c" : "#d2d2d7";
    const primaryColor = "#0066cc";
    const primaryHover = "#004499";

    // Main container
    const container = document.createElement('div');
    container.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif';
    container.style.width = '100%';
    container.style.maxWidth = '600px';
    container.style.margin = '0 auto';
    container.style.padding = '24px';
    container.style.boxSizing = 'border-box';
    container.style.borderRadius = '16px';
    container.style.boxShadow = isDark ? '0 10px 30px rgba(0,0,0,0.5)' : '0 10px 30px rgba(0,0,0,0.1)';
    container.style.backgroundColor = panelColor;
    container.style.color = textColor;
    container.style.display = 'flex';
    container.style.flexDirection = 'column';
    container.style.gap = '20px';

    // Banner utilizing the original image
    const bannerContainer = document.createElement('div');
    bannerContainer.style.width = '100%';
    bannerContainer.style.height = '140px';
    bannerContainer.style.overflow = 'hidden';
    bannerContainer.style.borderRadius = '12px';
    bannerContainer.style.display = 'flex';
    bannerContainer.style.justifyContent = 'center';
    bannerContainer.style.alignItems = 'center';
    bannerContainer.style.backgroundColor = '#000';
    bannerContainer.style.position = 'relative';

    const imgClone = new Image();
    imgClone.src = originalImg.src;
    imgClone.style.width = '100%';
    imgClone.style.height = '100%';
    imgClone.style.objectFit = 'cover';
    imgClone.style.opacity = '0.5';
    imgClone.style.filter = 'blur(2px)';
    
    const bannerText = document.createElement('div');
    bannerText.innerText = "Media Downloader";
    bannerText.style.position = 'absolute';
    bannerText.style.color = '#ffffff';
    bannerText.style.fontSize = '24px';
    bannerText.style.fontWeight = 'bold';
    bannerText.style.letterSpacing = '1px';
    bannerText.style.textShadow = '0 2px 4px rgba(0,0,0,0.8)';

    bannerContainer.appendChild(imgClone);
    bannerContainer.appendChild(bannerText);

    // Text Description Section
    const textSection = document.createElement('div');
    textSection.style.textAlign = 'center';

    const desc = document.createElement('p');
    desc.innerText = 'Download high-quality video & audio from YouTube, Facebook, Instagram, TikTok, X/Twitter, Reddit, Twitch, Vimeo, SoundCloud, Bilibili, and more!';
    desc.style.fontSize = '14px';
    desc.style.lineHeight = '1.5';
    desc.style.color = secondaryTextColor;
    desc.style.margin = '0';

    textSection.appendChild(desc);

    // Input area
    const inputContainer = document.createElement('div');
    inputContainer.style.display = 'flex';
    inputContainer.style.flexDirection = 'column';
    inputContainer.style.gap = '12px';
    inputContainer.style.width = '100%';

    const inputWrapper = document.createElement('div');
    inputWrapper.style.display = 'flex';
    inputWrapper.style.width = '100%';
    inputWrapper.style.gap = '10px';

    const input = document.createElement('input');
    input.type = 'text';
    input.placeholder = 'Paste video or audio URL here...';
    input.value = defaultVideoUrl;
    input.style.flex = '1';
    input.style.padding = '14px 16px';
    input.style.borderRadius = '10px';
    input.style.border = `1px solid ${borderColor}`;
    input.style.backgroundColor = inputBg;
    input.style.color = textColor;
    input.style.fontSize = '16px';
    input.style.outline = 'none';
    input.style.transition = 'border-color 0.2s';
    
    input.onfocus = () => input.style.border = `1px solid ${primaryColor}`;
    input.onblur = () => input.style.border = `1px solid ${borderColor}`;

    const btn = document.createElement('button');
    btn.innerText = 'Download';
    btn.style.padding = '0 24px';
    btn.style.borderRadius = '10px';
    btn.style.border = 'none';
    btn.style.backgroundColor = primaryColor;
    btn.style.color = '#ffffff';
    btn.style.fontSize = '16px';
    btn.style.fontWeight = '600';
    btn.style.cursor = 'pointer';
    btn.style.transition = 'background-color 0.2s';

    btn.onmouseover = () => btn.style.backgroundColor = primaryHover;
    btn.onmouseout = () => btn.style.backgroundColor = primaryColor;

    inputWrapper.appendChild(input);
    inputWrapper.appendChild(btn);

    // Status / Message Display
    const statusMsg = document.createElement('div');
    statusMsg.style.fontSize = '14px';
    statusMsg.style.textAlign = 'center';
    statusMsg.style.fontWeight = '500';
    statusMsg.style.minHeight = '20px';

    inputContainer.appendChild(inputWrapper);
    inputContainer.appendChild(statusMsg);

    // Disclaimer
    const disclaimer = document.createElement('div');
    disclaimer.innerText = 'Note: By using this tool, you are redirected to a reliable 3rd-party universal downloading API. Please respect copyright laws.';
    disclaimer.style.fontSize = '11px';
    disclaimer.style.color = secondaryTextColor;
    disclaimer.style.textAlign = 'center';
    disclaimer.style.marginTop = '10px';

    // Action listener
    btn.onclick = () => {
        const url = input.value.trim();
        if (!url) {
            statusMsg.innerText = 'Please enter a valid URL!';
            statusMsg.style.color = '#ff3b30'; // iOS red
            return;
        }

        try {
            new URL(url); // Basic validation to ensure it's a valid link format
            statusMsg.innerText = 'Redirecting to secure downloader...';
            statusMsg.style.color = '#34c759'; // iOS green
            
            // Redirecting to Cobalt API Web Interface which excellently matches the full platform list in the prompt
            setTimeout(() => {
                window.open('https://cobalt.tools/?u=' + encodeURIComponent(url), '_blank');
                statusMsg.innerText = '';
                input.value = '';
            }, 800);
            
        } catch (e) {
            statusMsg.innerText = 'Invalid URL format! Ensure it starts with http:// or https://';
            statusMsg.style.color = '#ff3b30';
        }
    };

    // Append everything
    container.appendChild(bannerContainer);
    container.appendChild(textSection);
    container.appendChild(inputContainer);
    container.appendChild(disclaimer);

    return container;
}

Free Image Tool Creator

Can't find the image tool you're looking for?
Create one based on your own needs now!

Description

This tool allows users to download high-quality video and audio content from various social media and streaming platforms, including YouTube, Facebook, Instagram, TikTok, X/Twitter, Reddit, Twitch, Vimeo, SoundCloud, and Bilibili. It is useful for saving media for offline viewing, content curation, or archiving digital content from across the web.

Leave a Reply

Your email address will not be published. Required fields are marked *