1001Ferramentas
🎮Utilities

Twitch Embed Builder

Generate the embed code (iframe) for a Twitch player from the channel name and your site domain. Add live streams and VODs to your page in seconds.



  

Twitch iframe with the parent parameter right

You copy the Twitch player URL into an iframe and get a black rectangle telling you the embed was refused. Nine times out of ten the culprit is the parent parameter, which Twitch now requires and which has to match the exact domain serving your page. This builder writes the iframe with that parameter already in place, so the first attempt is not a debugging session.

Give it a channel, a parent domain and the dimensions, and you get an iframe pointing at player.twitch.tv with channel and parent in the query string. The domain goes in bare: no https://, no trailing slash, just the host, like example.com or localhost. The channel name is filtered down to letters, digits and underscores. Width and height land as attributes, so keep them 16:9 unless you enjoy letterboxing.

The generated code always targets a live channel. To embed a VOD, swap channel=name for video=v123456789 in the copied URL, since the form has no field for it. If your site answers on both the apex and www, or you also run a staging host, repeat the parent parameter once per host. Twitch also refuses to load the embed on pages served over plain HTTP, localhost aside. It all builds in the browser.

Frequently asked questions

Why is the player black or showing an error?
Almost always the parent value does not match the host serving the page. It has to be the exact domain, with no protocol and no path.
Can I embed a VOD or a clip?
Not from the form, which always writes channel=. After copying, replace that part with video=v123456789 to point at a VOD.
What if the site runs on two domains?
Twitch accepts several parent values in one URL. Duplicate the parameter in the copied code, one per host that serves the page.

Related Tools