YouTube Embed Code Generator

Step 1: Enter the YouTube URL

Step 2: Customise Your Settings

Step 3: Preview & Copy the Code

Preview

Generated Code

Easy YouTube Embed Code Generator for Shopify Stores

This tool helps you quickly generate customisable YouTube video embed codes with adjustable width, alignment, borders, and margins. Simply paste your YouTube URL, tweak the settings, and preview your video before copying the code. It’s perfect for Shopify store owners wanting to add responsive, stylish videos to product pages, blog posts, or landing pages without any coding hassle.

About my YouTube Embed Code Generator

How to Use?
  1. Enter the YouTube URL of the video you want to embed.
  2. Customise your settings like max width, alignment, border style, border radius, and margins to fit your store’s design.
  3. Preview the video embed live.
  4. Copy the generated code and paste it into your Shopify page or product description.
Can’t I just use the embed code from YouTube?

You can, but the standard YouTube embed code is pretty basic. If you want your video to fit seamlessly with your site’s design, it doesn’t offer much control.

Here’s what this custom embed generator gives you:

  • Custom width: Set your preferred max width with responsive scaling.
  • Auto aspect ratio: Keeps a clean 16:9 layout - no squishing or cropping.
  • Easy alignment: Left, right, or center, no extra CSS needed.
  • Styling options: Add border radius and fully customise borders.
  • Clean code: Lightweight output with no unnecessary fluff.

    For a quick embed, YouTube’s code works fine. But for a polished, on-brand look - this tool does the heavy lifting.
Why It Helps With Shopify
  • Responsive design: Maintains the 16:9 aspect ratio across all screen sizes for a professional look.
  • Customisable styling: Tailor borders, alignment, and spacing without touching any CSS.
  • Easy integration: Generate clean, copy-paste embed code ready for Shopify’s HTML editor.
  • Saves time: No need to write or debug embed code manually.
Can I use this tool for any YouTube video?

Yes! Just paste any valid YouTube video URL and the tool will extract the video ID for embedding.

Will this code work on all Shopify themes?

Yes! The embed code uses standard HTML and inline CSS that works across Shopify themes and most web platforms.

You May Also Like

View all

Easy way to clean URLs

URL Cleaner

Shorten URLs by removing root domains, prefixes, and subdomains, like 'http://', 'https://', or 'www'.

Explore

Creating shopify discount code urls

Shopify Discount URL Generator

Automatically apply pre-created discount codes at checkout with a simple URL, ensuring customers never miss a deal.

Explore

How to bulk rename images

Bulk SEO-Friendly Image Names

Bulk optimise image file names with SEO-friendly formats, customisable prefixes, and suffixes.

Explore