Embed LoopTube
Last updated: July 2026
Add YouTube video looping to your website with our free embed API — no API key required.
Quick Start
Drop this into any page, replacing VIDEO_ID with a YouTube video ID:
<div style="max-width:100%;width:640px">
<iframe
src="https://looptube.xyz/embed/VIDEO_ID?start=10&end=30&tempo=70&theme=dark"
width="100%"
height="820"
style="border:0;border-radius:12px;display:block"
allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"
allowfullscreen
></iframe>
</div>This loops seconds 10–30 of the video at 70% speed with the dark theme. The easiest way to get this snippet for a specific video is the embed code generator right on the homepage — it fills in the current video and loop points for you.
URL Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
VIDEO_ID | string, required | YouTube video ID, given as part of the path. | /embed/dQw4w9WgXcQ |
start | number | Loop start time in seconds. | 10.5 |
end | number | Loop end time in seconds. | 30.75 |
tempo | number | Playback speed as a percentage, 25–200. | 70 |
autoplay | boolean | Attempt autoplay (browser permitting). | 1 |
loop | boolean | Alias for autoplay when start/end are set — an "open and play" embed for teaching. | 1 |
theme | string | "dark" (default), "light", or "auto" (follows the visitor's OS setting). | light |
controls | string | "full" (default) or "minimal" — minimal hides fine-tune, shift, and skip controls for a slimmer embed. | minimal |
Backward compatible: older embeds using the query form looptube.xyz/embed?vid=VIDEO_ID keep working — new embeds should use the path form above.
Perfect For
Music Education
Embed slowed-down sections for guitar, piano, or drum lessons. Students can practice difficult passages at their own pace.
tempo=70Language Learning
Loop pronunciation segments and slow down native speakers for comprehension practice.
start=5&end=15&tempo=65Religious Study
Perfect for learning hymns, mantras, prayers, and chants through repetition. Control the tempo as you memorize.
tempo=70&autoplay=1Dance & Sports
Break down choreography or athletic techniques frame-by-frame with precise loop controls.
start=10&end=20&tempo=50Advanced: Multi-Section App
Build interactive learning apps with multiple clickable sections (perfect for hymns, tutorials, or courses):
<script>
const sections = [
{ label: "Intro", start: 0, end: 10 },
{ label: "Verse 1", start: 10, end: 30 },
{ label: "Chorus", start: 30, end: 45 }
];
function loadSection(section) {
const url = `https://looptube.xyz/embed/YOUR_VIDEO_ID?start=${section.start}&end=${section.end}&loop=1`;
document.getElementById('player').src = url;
}
</script>Need Help?
Have questions about embedding LoopTube? Email info@looptube.xyz— we're happy to help.
LoopTube Embed is free to use. No API key required. looptube.xyz