# YouTube

<figure><img src="https://330243581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTep4EGj6hSC54ozHujyK%2Fuploads%2Fgit-blob-1e042dd39cbe8261ba529f6b977e425373395c02%2Fyoutube-component.png?alt=media" alt="YouTube Component in Webstudio Add Panel"><figcaption></figcaption></figure>

While YouTube offers embed codes, the YouTube component enables a much better experience, which is why it’s the recommended way to add YouTube videos to your site.

**Benefits:**

* Paste a URL instead of code
* Responsive by default
* Faster loading with customizable preview images and lazy loading
* UI inputs for all the settings instead of code
* Customizable play icon and loading icon

## Related

* [Vimeo](https://docs.webstudio.is/university/core-components/vimeo) – Vimeo video embeds
* [Video Animation](https://docs.webstudio.is/university/core-components/video-animation) – Scroll-controlled video
* [Image](https://docs.webstudio.is/university/core-components/image) – Custom preview images
