Embed code generator
Iframe code for HTML, React, Vue, Svelte and Astro. Every frame gets a title. You pick the size and the permissions.
Updated
Size
Aspect ratio
allow (permissions)
<div style="position: relative; aspect-ratio: 16 / 9;">
<iframe
src="https://your-site.com/embed"
title="Embedded page from your-site.com"
loading="lazy"
allow="fullscreen"
allowfullscreen
referrerpolicy="strict-origin-when-cross-origin"
style="position: absolute; inset: 0; width: 100%; height: 100%; border: 0;"
></iframe>
</div>✓ Has a title for screen readers✓ Box keeps its size before the page loads363 bytes
What this embed allows
- No sandbox: the page gets the normal rights of a cross-origin frameno sandbox attribute
Enter a URL to see the live embed here.