TikTok Embed Code Generator

Paste a TikTok video link and get the official embed code for free to show it on your website, blog or online store. No sign-up needed.
The video’s link from Share → Copy link, e.g. https://www.tiktok.com/@scout2015/video/6718335390845095173
Want the whole TikTok channel as a gallery that updates itself?

Embed the video

<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>

  1. Click Copy code above to copy it.
  2. Open the page’s HTML file or template.
  3. Paste the code inside <body>, where the content should appear.
  4. 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 →

Before you go

Need more than one video? Show the whole TikTok channel as an interactive gallery that updates itself.

Create a TikTok video gallery →
Or share this free tool:
Elfsight Video Gallery

Show your whole TikTok channel or a hashtag

Video Gallery displays TikTok videos from a channel or hashtag in a gallery or carousel, next to your YouTube and Instagram 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

This generator vs TikTok’s own Embed button

TikTok’s Share → Embed gives you the standard code for one video. Here is what changes when you build the code here instead.
TikTok’s own Embed button
This generator
Where it works
TikTok asks you to copy the code in a desktop browser, not the app.
Paste a link from any device.
Code type
Official code: a blockquote plus embed.js.
The official code, or the light iframe player (/player/v1/).
Caption, music and creator
Always shown around the video.
Shown with the official code; optional in the light player (description, music_info).
Autoplay, loop, mute
Not available.
Available in the light player (autoplay, loop, muted).
Player controls
TikTok’s default controls.
Hide the progress bar, timestamp or all controls in the light player.
Related videos
Chosen by TikTok.
Limit them to the author’s own videos with rel=0 in the light player.

Where it works

TikTok’s own Embed button

TikTok asks you to copy the code in a desktop browser, not the app.

This generator

Paste a link from any device.

Code type

TikTok’s own Embed button

Official code: a blockquote plus embed.js.

This generator

The official code, or the light iframe player (/player/v1/).

Caption, music and creator

TikTok’s own Embed button

Always shown around the video.

This generator

Shown with the official code; optional in the light player (description, music_info).

Autoplay, loop, mute

TikTok’s own Embed button

Not available.

This generator

Available in the light player (autoplay, loop, muted).

Player controls

TikTok’s own Embed button

TikTok’s default controls.

This generator

Hide the progress bar, timestamp or all controls in the light player.

Related videos

TikTok’s own Embed button

Chosen by TikTok.

This generator

Limit them to the author’s own videos with rel=0 in the light player.

How to use the TikTok Embed Code generator

  1. Copy the video link

    In TikTok, open the video and copy its link from the browser or Share menu.

  2. Paste it above

    The generator builds TikTok’s official embed code.

  3. Paste into your site

    Add it to an HTML or embed block. The embed script loads the player.

TikTok light player parameters

Parameter
What it does
Example
controls
Shows (1) or hides (0) the progress bar and all control buttons. Default 1.
controls=0
progress_bar
Shows or hides the progress bar. Default 1.
progress_bar=0
play_button
Shows or hides the play button. Default 1.
play_button=0
volume_control
Shows or hides the volume button. Default 1.
volume_control=0
fullscreen_button
Shows or hides the fullscreen button. Default 1.
fullscreen_button=0
timestamp
Shows or hides the current time and duration. Default 1.
timestamp=0
loop
Repeats the video when it ends. Default 0.
loop=1
autoplay
Starts the video on load. Default 0.
autoplay=1
muted
Starts with the sound off and locks the volume. Default 0.
muted=1
music_info
Shows the music info. Default 0.
music_info=1
description
Shows the video description. Default 0.
description=1
rel
1 shows recommended videos as related; 0 shows the author’s own videos. Default 1.
rel=0
native_context_menu
Shows or hides the browser’s right-click menu. Default 1.
native_context_menu=0
closed_caption
Shows or hides the closed-caption button. Default 1.
closed_caption=0

controls

What it does

Shows (1) or hides (0) the progress bar and all control buttons. Default 1.

Example

controls=0

progress_bar

What it does

Shows or hides the progress bar. Default 1.

Example

progress_bar=0

play_button

What it does

Shows or hides the play button. Default 1.

Example

play_button=0

volume_control

What it does

Shows or hides the volume button. Default 1.

Example

volume_control=0

fullscreen_button

What it does

Shows or hides the fullscreen button. Default 1.

Example

fullscreen_button=0

timestamp

What it does

Shows or hides the current time and duration. Default 1.

Example

timestamp=0

loop

What it does

Repeats the video when it ends. Default 0.

Example

loop=1

autoplay

What it does

Starts the video on load. Default 0.

Example

autoplay=1

muted

What it does

Starts with the sound off and locks the volume. Default 0.

Example

muted=1

music_info

What it does

Shows the music info. Default 0.

Example

music_info=1

description

What it does

Shows the video description. Default 0.

Example

description=1

rel

What it does

1 shows recommended videos as related; 0 shows the author’s own videos. Default 1.

Example

rel=0

native_context_menu

What it does

Shows or hides the browser’s right-click menu. Default 1.

Example

native_context_menu=0

closed_caption

What it does

Shows or hides the closed-caption button. Default 1.

Example

closed_caption=0

Source: TikTok for Developers: Embed Videos

Why 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.

Official code
Light player
What it is
A <blockquote class="tiktok-embed"> and TikTok’s embed.js script
An <iframe> pointing to https://www.tiktok.com/player/v1/VIDEO_ID
What viewers see
The video with the creator, caption, hashtags and sound credit
The video only; caption and music are optional
Size
Between 325px and 605px wide
Whatever size you give the iframe
Needs a script
Yes
No
Autoplay, loop, mute, hidden controls
No
Yes, with URL parameters

What it is

Official code

A <blockquote class="tiktok-embed"> and TikTok’s embed.js script

Light player

An <iframe> pointing to https://www.tiktok.com/player/v1/VIDEO_ID

What viewers see

Official code

The video with the creator, caption, hashtags and sound credit

Light player

The video only; caption and music are optional

Size

Official code

Between 325px and 605px wide

Light player

Whatever size you give the iframe

Needs a script

Official code

Yes

Light player

No

Autoplay, loop, mute, hidden controls

Official code

No

Light player

Yes, with URL parameters

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

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 TikTok 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

Videos per embed

Embed code

One video (or one playlist)

Video Gallery

Unlimited videos in one widget

Stays up to date

Embed code

Edit the code for every new video

Video Gallery

New TikTok videos appear automatically

Mix sources

Embed code

One platform per snippet

Video Gallery

YouTube, Vimeo, TikTok, Instagram, Twitch and any video link

Layouts

Embed code

Single player

Video Gallery

Player with Gallery, Carousel, Grid, Masonry, Playlist

Responsive design

Embed code

Needs a CSS wrapper

Video Gallery

Built in

Coding

Embed code

Copy and paste code for each video

Video Gallery

No code — edit visually in the editor

Price

Embed code

Free

Video Gallery

Free plan, no credit card needed

Frequently asked questions

Official documentation

More free tools

Related guides

How to embed a video on a website

Upload the video to YouTube or Vimeo and paste its embed code, use the HTML5 video tag for files you host yourself, or use a video gallery widget when you need several videos. Here’s how each method works and when to use it.How to embed a video on a website