Skip to main content
generator·Updated 2026-11-28

Twitch Embed Code Generator Updated 2026

Build the official Twitch embed code for a live stream, chat, VOD or clip. Set the parent domain, size, autoplay and mute, then copy the iframe or JavaScript snippet.

Client-side only · No sign-up · Official Twitch embed format · Checked 28 Nov 2026

Twitch embed code builder

Hostname only: no https://, no path, no port. Empty uses yourdomain.com as a placeholder.
Parent domain is empty, so the code uses yourdomain.com. Replace it with your real domain before you publish.
Type
Live stream
Size
854 × 480
Parents
placeholder

Iframe embed code

<iframe
  src="https://player.twitch.tv/?channel=twitchdev&parent=yourdomain.com"
  height="480"
  width="854"
  allowfullscreen>
</iframe>

JavaScript embed code

<div id="twitch-embed"></div>
<script src="https://embed.twitch.tv/embed/v1.js"></script>
<script type="text/javascript">
  new Twitch.Embed("twitch-embed", {
    width: 854,
    height: 480,
    channel: "twitchdev",
    layout: "video",
    theme: "dark",
    parent: ["yourdomain.com"]
  });
</script>

Preview

The preview loads the player from Twitch with this page as the parent. It only starts when you click.

How Twitch embed code works

Twitch embeds come in two forms. The iframe is plain HTML: one tag that points at player.twitch.tv for video, clips.twitch.tv/embed for clips or www.twitch.tv/embed/CHANNEL/chat for chat. The JavaScript embed loads Twitch's script and builds the player for you, with an option for a player plus chat layout. Both do the same job; the iframe is simpler and works in any page builder that accepts HTML.

The parent parameter explained

Every Twitch embed needs a parent value. It is the domain of the page that shows the embed. Twitch compares it with the real address of the page and will not play the stream on a domain that is not listed. Write the hostname only, for example example.com: no https://, no path and no port. If the same page opens on example.com and www.example.com, list both, one parent= per domain in an iframe, or several strings in the JavaScript array. For local testing, use localhost.

Autoplay, muted and size

Twitch plays embeds automatically by default. Untick Autoplay to add autoplay=false, and tick Start muted to add muted=true. Autoplay only works when the player is big enough and visible on screen, and phones need a tap before video starts. Twitch lists 400×300 pixels as the minimum for embedded video, so keep the player at or above that. Width and height accept pixels or a percentage.

Embedding chat, VODs and clips

Chat has its own iframe and does not need the video. A VOD uses the video ID, which is the number in a twitch.tv/videos/… link; the generator adds the v prefix Twitch expects. A clip uses its slug, the last part of the clip link. Stream plus chat puts both frames in one block, or uses the video-with-chat layout in the JavaScript version.

Sources, checked 28 Nov 2026: Twitch docs: video and clips · chat embed · embed everything. The dark chat option (darkpopout) is not listed in those docs; the theme option of the JavaScript embed is.

No sign-up required. Use the tool, share the result, leave — no account needed.
Client-side computation. Calculations run entirely in your browser; we never see your inputs.
Embed in OBS / Discord. Append ?embed=1 to the URL for a bare iframe-ready widget.
How to use this tool

5 steps · ~1 minute

Each step is a single action — no setup, no sign-up. Outputs are client-side; nothing is uploaded.

Step 01

Choose what to embed

Live stream, chat only, stream plus chat, a past broadcast (VOD) or a clip.

Step 02

Enter the channel, VOD or clip

Type a channel name or paste a twitch.tv link. For a VOD or clip paste the link or the ID.

Step 03

Add your parent domain

Type the domain of the site where the embed will live, like example.com. Add every domain and subdomain that serves the page, separated by commas.

Step 04

Set size, autoplay and mute

Pick a width and height (at least 400×300 for video), then choose autoplay and muted.

Step 05

Copy the code

Copy the iframe, or the JavaScript version for live streams, and paste it into your page HTML.

FAQ · methodology & caveats

Frequently asked.

Calculator outputs are estimates. Each Q below names the source data and the assumptions baked in.

How do I embed a Twitch stream on my website?
Pick Live stream, type the channel name, add your site's domain in the parent field and copy the iframe. Paste it into the HTML of your page. The iframe points at player.twitch.tv with your channel and the parent value, and Twitch serves the player from there.
What is the parent parameter in a Twitch embed?
It is the domain of the page that holds the embed, for example example.com. Twitch checks it and refuses to play the embed on any domain that is not listed. Use the hostname only: no https://, no path, no port. If the page is reachable on more than one domain, such as www.example.com and example.com, add each one.
Why does my Twitch embed show a blank player or a parent error?
The most common cause is a parent value that does not match the address bar of the page showing the embed. Check the hostname for a missing www, a staging domain, or a local address. Add every hostname that serves the page as its own parent value.
Can I embed Twitch chat without the video?
Yes. Choose Chat only. The code is an iframe on www.twitch.tv/embed/CHANNEL/chat with your parent domain. Viewers can read chat in the frame and sign in to Twitch inside it to write.
How do I stop the stream from playing automatically?
Untick Autoplay. The generator adds autoplay=false to the iframe URL (or autoplay: false in the JavaScript embed). Autoplay is on by default, and Twitch notes that autoplay needs the player to meet a minimum size and visibility, and does not work on mobile without a tap.
What is the smallest size a Twitch embed can be?
Twitch states that embedded video windows must be at least 400×300 pixels. The generator shows a warning when you go below that. Chat frames have no stated minimum; the Twitch example uses 350×500.
Does this tool send my channel or domain anywhere?
No. The code is built in your browser and nothing is sent to a server. The optional preview loads the player from Twitch directly, using the domain of this page as the parent.

Done with the tool? Ship the channel.

Streamrise delivers real Twitch and Kick viewer floors — residential IPs, geo-targeted, with chat presence. Same engineering rigor you saw in the calculator, on the paid side. No password requested. Cancel anytime.