TikTok Embed Code Generator
<blockquote class="tiktok-embed" cite="https://www.tiktok.com/@scout2015/video/6718335390845095173" data-video-id="6718335390845095173" style="max-width:605px;min-width:325px;"> <section><a target="_blank" href="https://www.tiktok.com/@scout2015">@scout2015</a></section> </blockquote> <script async src="https://www.tiktok.com/embed.js"></script> <p style="margin:4px auto 0;max-width:605px;text-align:center;font:11px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#a3a7b0;">Created with <a href="https://elfsight.com/tools/tiktok-embed-generator/" target="_blank" rel="noopener" style="color:inherit;text-decoration:none;">Elfsight</a></p>
- Click Copy code above to copy it.
- Open the page’s HTML file or template.
- Paste the code inside
<body>, where the content should appear. - Save and upload the page, then open it in a browser to check.
Need more than one video?
Show the whole TikTok channel as an interactive gallery that updates itself.
See Video Gallery for HTML →Show your whole TikTok channel or a hashtag
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
This generator vs TikTok’s own Embed button
blockquote plus embed.js./player/v1/).description, music_info).autoplay, loop, muted).rel=0 in the light player.Where it works
TikTok’s own Embed button
This generator
Code type
TikTok’s own Embed button
blockquote plus embed.js.This generator
/player/v1/).Caption, music and creator
TikTok’s own Embed button
This generator
description, music_info).Autoplay, loop, mute
TikTok’s own Embed button
This generator
autoplay, loop, muted).Player controls
TikTok’s own Embed button
This generator
Related videos
TikTok’s own Embed button
This generator
rel=0 in the light player.How to use the TikTok Embed Code generator
Copy the video link
In TikTok, open the video and copy its link from the browser or Share menu.
Paste it above
The generator builds TikTok’s official embed code.
Paste into your site
Add it to an HTML or embed block. The embed script loads the player.
TikTok light player parameters
controlscontrols=0progress_barprogress_bar=0play_buttonplay_button=0volume_controlvolume_control=0fullscreen_buttonfullscreen_button=0timestamptimestamp=0looploop=1autoplayautoplay=1mutedmuted=1music_infomusic_info=1descriptiondescription=1relrel=0native_context_menunative_context_menu=0closed_captionclosed_caption=0controls
What it does
Example
controls=0progress_bar
What it does
Example
progress_bar=0play_button
What it does
Example
play_button=0volume_control
What it does
Example
volume_control=0fullscreen_button
What it does
Example
fullscreen_button=0timestamp
What it does
Example
timestamp=0loop
What it does
Example
loop=1autoplay
What it does
Example
autoplay=1muted
What it does
Example
muted=1music_info
What it does
Example
music_info=1description
What it does
Example
description=1rel
What it does
Example
rel=0native_context_menu
What it does
Example
native_context_menu=0closed_caption
What it does
Example
closed_caption=0Why the TikTok doesn’t show
The account or video is private
Only public videos can be embedded. Make the video public in TikTok, or pick another one.
The video was deleted or removed
TikTok says an embedded video is available only while it is available in the app. If it was removed, the embed stops working — replace it.
An ad blocker or privacy extension is on
Some blockers stop scripts and frames from tiktok.com. Check the page in a private window with extensions off. You can’t control your visitors’ blockers, so keep a link to the video next to the embed.
Your site builder removed the script
Many text blocks strip <script> tags. Paste the code into an HTML or custom-code block, or use the light iframe player, which needs no script.
You pasted a short link
Short vm.tiktok.com or vt.tiktok.com links don’t contain the video ID. Open the link in a browser and copy the full tiktok.com/@user/video/… address.
Autoplay doesn’t start
Browsers often block autoplay with sound. Turn on muted together with autoplay.
Official code or the light player: which to choose
TikTok offers two ways to put a video on your site. Both are documented by TikTok.
<blockquote class="tiktok-embed"> and TikTok’s embed.js script<iframe> pointing to https://www.tiktok.com/player/v1/VIDEO_IDWhat it is
Official code
<blockquote class="tiktok-embed"> and TikTok’s embed.js scriptLight player
<iframe> pointing to https://www.tiktok.com/player/v1/VIDEO_IDWhat viewers see
Official code
Light player
Size
Official code
Light player
Needs a script
Official code
Light player
Autoplay, loop, mute, hidden controls
Official code
Light player
Pick the official code when
you want the post to look like it does on TikTok, with the creator’s name and caption;
your site builder allows scripts.
Pick the light player when
you want a clean video, for example in a product section or a hero block;
you need autoplay, loop or muted playback;
your builder strips scripts but allows iframes.
Either way the video must stay public on TikTok. Details are in TikTok’s Embed Player and Embed Videos docs.
Embed code vs. Elfsight Video Gallery
Videos per embed
Embed code
Video Gallery
Stays up to date
Embed code
Video Gallery
Mix sources
Embed code
Video Gallery
Layouts
Embed code
Video Gallery
Responsive design
Embed code
Video Gallery
Coding
Embed code
Video Gallery
Price
Embed code
Video Gallery