Skip to content
Tagembed
Try Free

Instagram Embed Code

Updated Nov 19, 2026 3 min read

What Is an Instagram Embed Code?

An Instagram embed code is a snippet of HTML and JavaScript provided by Instagram that allows website owners to render live posts, photos, Reels, and video content directly on their web pages. Instead of taking a static screenshot or rehosting content without permission, embedding an Instagram post links directly to the original source on Instagram, preserving interactive features like likes, comments, creator attribution, and direct play functionality.

In simple terms, an Instagram embed code acts as a dynamic window into Instagram, bringing real-time social content into your website layout without slowing down overall performance.

Why Use an Instagram Embed Code?

Website owners, marketers, and ecommerce brands use an Instagram embed code to:

  • Build Social Proof: Showcase user-generated content (UGC) and customer experiences to build visitor trust.
  • Improve Website Engagement: Add interactive Instagram content that encourages visitors to explore your website.
  • Increase Instagram Reach: Help visitors discover your Instagram account and explore the original posts.
  • Enhance Visual Appeal: Add relevant photos and videos to product pages, landing pages, and blog articles.

How to Add an Instagram Embed Code to a Website?

Follow these steps to add an Instagram embed code to your website:

  1. Open Instagram.com in a desktop or mobile browser.
  2. Find and open the public Instagram post or Reel you want to embed.
  3. Click the three-dot menu on the post.
  4. Select Embed from the available options.
  5. Click Copy Embed Code in the popup.
  6. Open your website editor and add a Custom HTML block or equivalent code section.
  7. Paste the copied code and publish your page. Preview it to check whether the Instagram content displays correctly.

Note: Instagram does not offer the embed code option in its mobile app. Only eligible public content from accounts that allow embedding can be embedded. Private accounts and accounts with embedding disabled are not supported.

What Does an Instagram Embed Code Look Like?

A standard Instagram embed code relies on an HTML blockquote combined with Instagram’s client-side JavaScript (embeds.js):

<blockquote class="instagram-media"  data-instgrm-permalink="https://www.instagram.com/p/ExampleID/" data-instgrm-version="14">
  <a href="https://www.instagram.com/p/ExampleID/">View this post on Instagram</a>
</blockquote>
<script async src="//www.instagram.com/embed.js"></script>

In this snippet, data-instgrm-permalink specifies the destination URL of the post, while the asynchronous script parses the blockquote and transforms it into an interactive card.

Instagram Embed Code vs Other Integration Methods:

FeatureInstagram Embed CodeAPI IntegrationStatic Screenshot
Primary PurposeDisplay individual postsCustom multi-feed displayVisual snapshot
InteractivityHigh (clickable links, likes, video play)Custom/HighNone
Setup ComplexityLow (no coding required)High (requires access tokens & dev skills)Very Low
Copyright ComplianceCompliant (links to original creator)CompliantPotential risk

← Back to all glossary terms