Embedding YouTube videos directly into your Siyuan notes is a great way to add rich media to your personal knowledge management workflow. Whether you’re documenting a tutorial, saving a product review, or sharing music, Siyuan offers a simple and efficient way to bring videos into your notes.

Here’s how you can do it in just a few steps:
Step 1: Copy the YouTube Embed Code
- Go to the YouTube video you want to embed.
- Right-click on the video itself (not the URL bar).
- Select “Copy embed code” from the context menu.
(This copies an HTML<iframe>code snippet to your clipboard.)
Step 2: Paste the Embed Code in Your Siyuan Markdown Note
- Open your Siyuan note where you want the video to appear.
- Paste the copied embed code directly into your note.
- Siyuan will automatically recognize and embed the video inline—no extra steps needed!
Step 3: Adjust the Video Size
- After the video is embedded, simply click and drag the video block’s edges in your note.
- You can easily expand, shrink, or reposition the video to fit your layout and preferences.
Example YouTube Embed Code:
<iframe width="1307" height="735" src="https://www.youtube.com/embed/OcSBggDyeJ4" title="Pi-hole Syncing… But Smarter..." frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
You can use this exact format for your own videos—just replace the src URL with your chosen video’s embed link.
That’s it!
Your YouTube video is now beautifully embedded in your Siyuan note. This method takes advantage of Siyuan’s HTML rendering engine, letting you use standard YouTube embed codes without any plugins or extra formatting.
Quick Tips:
- You can embed multiple videos in one note—just repeat the steps above.
- The video remains interactive and fully playable within your notes.
- If you ever want to resize or move the video, just drag it like any other block.
Conclusion
Adding YouTube videos to Siyuan is fast, intuitive, and leverages the built-in support for HTML blocks in Markdown. Try it out the next time you want to enrich your notes with visual content!

