Skip to footer content
# IRONPDF

Transforming Data into Insights with IronPDF

YouTube Video

How to Embed a YouTube Video in Markdown

To embed a YouTube video in a markdown document using a thumbnail link, you can follow these steps:

  1. Copy the YouTube video ID: Find the video ID from the YouTube video's URL. It is the part after v= in the URL string. For example, in https://www.youtube.com/watch?v=1sKet1Wc0mI, the video ID is 1sKet1Wc0mI.

  2. Create a Thumbnail Image Link:

    • Use http://img.youtube.com/vi/[video ID]/0.jpg as the link to the video's thumbnail image.
    • Example: http://img.youtube.com/vi/1sKet1Wc0mI/0.jpg.
  3. Create a Markdown Link:
    • Use the syntax [![Alt Text](Thumbnail URL)](YouTube Video URL) to make the link clickable, which redirects to the YouTube video when clicked.
    • Example: [![YouTube Video](http://img.youtube.com/vi/1sKet1Wc0mI/0.jpg)](http://www.youtube.com/watch?v=1sKet1Wc0mI), which will embed a preview image of the video that links to the actual video on YouTube.

By clicking on the thumbnail image in the rendered markdown, viewers can be redirected to the YouTube video.