Twitch Embed Code Generator
Embed a Twitch live stream, past broadcast or clip on your website. Add your domain and copy a ready-to-use player code.
- Free
- No sign-up
- Works on any website
- Updated September 2026
Settings
<div style="position:relative;width:100%;aspect-ratio:16 / 9;"> <iframe style="position:absolute;inset:0;width:100%;height:100%;border:0;" src="https://player.twitch.tv/?channel=yourchannel&parent=example.com&autoplay=false&muted=true" title="Twitch player" allowfullscreen></iframe> </div>
Show streams and videos from several channels
Video Gallery displays Twitch videos from a channel or category, next to your YouTube videos.
- Auto-updates when you publish new videos
- Carousel, grid, masonry or player with playlist
- YouTube, Vimeo, TikTok, Instagram, Twitch and any video link
- No coding — works on any website
How to use the Twitch Embed Code generator
- 1Choose what to embed
A live channel, a past broadcast or a clip.
- 2Add your domain
Twitch only plays embeds on the domains listed in the parent parameter.
- 3Copy the code
Paste it into an HTML or embed block on that domain.
Twitch embed parameters
| Parameter | What it does | Example |
|---|---|---|
channel | Shows a live channel. | channel=yourchannel |
video | Shows a past broadcast (VOD). | video=v123456789 |
min size | The player must be at least 400×300 px. | width ≥ 400 |
clip | Shows a clip (clips.twitch.tv). | clip=AwesomeClipSlug |
parent | Domain allowed to show the player. Required. | parent=example.com |
autoplay / muted | Controls playback on load. | autoplay=false&muted=true |
How to add the code to your website
In the block editor, add a Custom HTML block where the video should appear and paste the code. In the classic editor, switch to the Text tab first.
See Video Gallery for WordPress →Go to Online Store → Themes → Customize, add a Custom Liquid section to the page and paste the code.
See Video Gallery for Shopify →Click Add → Embed Code → Embed HTML, choose Code and paste the snippet, then resize the element.
See Video Gallery for Wix →Edit the page, add a Code block and paste the snippet. Blocks with scripts may require a Business plan or higher.
See Video Gallery for Squarespace →Drag a Code Embed element from the Add panel onto the page and paste the code. Publish to see it live.
See Video Gallery for Webflow →Paste the code into your page’s HTML inside <body>, where the video should appear.
Embed code vs. Elfsight Video Gallery
| Embed code | Video Gallery | |
|---|---|---|
| Videos per embed | One video (or one playlist) | Unlimited videos in one widget |
| Stays up to date | Edit the code for every new video | New Twitch videos appear automatically |
| Mix sources | One platform per snippet | YouTube, Vimeo, TikTok, Instagram, Twitch and any video link |
| Layouts | Single player | Player with Gallery, Carousel, Grid, Masonry, Playlist |
| Responsive design | Needs a CSS wrapper | Built in |
| Coding | Copy and paste code for each video | No code — edit visually in the editor |
| Price | Free | Free plan, no credit card needed |
Frequently asked questions
What is a Twitch embed generator?
A Twitch embed generator creates the iframe for a Twitch stream, VOD or clip, with the required parent domain filled in.
How do I embed a Twitch stream on my website?
Enter the channel name and your site’s domain, then copy the code. The player shows the stream when the channel is live.
Why does my Twitch embed show an error?
The parent parameter must exactly match the domain where the player is embedded, the site must use HTTPS, and the player must be at least 400×300 px. See Twitch’s embed requirements.
Can I embed Twitch on more than one domain?
Yes — add the parent parameter once for each domain.
Can I embed Twitch clips?
Yes. Choose Clip and paste the clip link.
Official documentation
More free tools
Related guides
From one video to a gallery people watch
Create a free video gallery in minutes and add it to any website.
Create Widget for Free