A Guide to Using an Embed Code for Instagram in 2026

Learn how to use an embed code for Instagram to add posts, reels, and stories to your website. Boost social proof and engagement with our practical guide.

A Guide to Using an Embed Code for Instagram in 2026
Image URL
AI summary
Using an Instagram embed code allows you to add interactive posts, reels, and stories to your website, enhancing social proof and engagement. This guide explains how to embed content, the benefits of showcasing user-generated content, and methods for using the Instagram Graph API for dynamic feeds. It also covers customization options for better integration with your site's design and troubleshooting common issues like private accounts and ad blockers.
Title
A Guide to Using an Embed Code for Instagram in 2026
Date
Mar 16, 2026
Description
Learn how to use an embed code for Instagram to add posts, reels, and stories to your website. Boost social proof and engagement with our practical guide.
Status
Current Column
Person
Writer
Think of an Instagram embed code as more than just a technical snippet of HTML. It's a live window from your website straight into your Instagram feed. Instead of posting a static, lifeless screenshot of a great post, you're plugging the real, interactive thing right onto your page.

Why You Should Embed Instagram Content on Your Website

Dropping your latest Instagram posts onto your website isn't just about making the page look busy. It's a savvy move that connects your social media world with your main online hub, building a bridge that boosts credibility and keeps people clicking.
It gives your website visitors a dose of real-world authenticity that polished marketing copy just can't match.
notion image

Building Trust with Social Proof

Let's be real—when someone lands on your site for the first time, they're looking for proof that you're a legitimate, active business. Professional photos and slick copy are standard, but they don't have the same raw validation that comes from social media.
With an embed code for instagram, you can instantly show off:
  • User-Generated Content (UGC): Photos and videos from actual customers who are loving your products.
  • Video Testimonials: Quick, authentic shout-outs from happy clients.
  • Your Brand's Personality: Those fun behind-the-scenes Reels that show there are real people behind the logo.
This is how you turn a passive browser into someone who feels connected to your brand. Seeing real people using and loving what you do builds a layer of trust that a scripted testimonial simply can't buy. If you're serious about this, using tools to collect and display your favorite video testimonials can make a huge difference.

Boosting Engagement and Conversions

Here's the best part: embedded posts are fully interactive. Visitors can like, comment, and even follow your Instagram account without ever leaving your website. This is a fantastic way to grow your social following while also keeping people on your site longer—a signal that search engines love.
And the numbers back this up. User-generated content, the kind you’d typically embed, is known to drive a 4.5% higher conversion rate than standard branded content. Plus, if you're embedding video, you're tapping into a format that already gets 38% more engagement than static images on Instagram. It's clear that effective social media management is about turning your website into a dynamic reflection of your brand's community.
Getting an Instagram embed code is one of those things that sounds way more technical than it actually is. You can grab one in less than a minute, seriously.
Imagine a customer posts an amazing video testimonial about your product. You want that on your site. Yesterday. Instead of a boring screenshot, you can pop that live, interactive post right onto your testimonials page. It's pure gold.
Here’s how to do it from your desktop browser.

The Official "Post Embed" Method

First, pull up the specific Instagram post you want to show off.
A quick heads-up: this only works for posts from public accounts. If the account is locked down, the embed option won't even show up. Even if you somehow found a code, it would just look like a broken box on your site.
Once you’re on the post, look for the three-dots icon () in the top-right corner. Give that a click.
A little menu will appear. Just look for the "Embed" option and select it. Bam. A new window pops up with the HTML snippet you need.

To Keep the Caption, or Not?

You'll see a little checkbox in that popup: "Include caption."
By default, it's checked. This is usually what you want. It keeps the original text, hashtags, and creator credit, which gives the post context and feels much more authentic.
But, if you're going for a super clean look and want to write your own intro, just uncheck the box. The code instantly updates to a version with just the photo or video. Simple.
After you've decided, just hit the "Copy Embed Code" button. That HTML is now on your clipboard, ready to be pasted into your website’s editor, a blog post, or a landing page.
If you’re embedding a bunch of video reviews, our guide on how to embed a video has some extra tips you might find helpful.
And while grabbing the code directly works great, sometimes you need more firepower. For managing multiple Instagram embeds or building more complex feeds, third-party tools like saucial.app can really save you some time.

Getting Technical: Using the Graph API and oEmbed for Instagram Embeds

The classic copy-and-paste method is great for dropping a post or two into a blog article. But what happens when you need more firepower? Say, you want to build a dynamic, self-updating feed of customer posts on your website.
That's when you roll up your sleeves and turn to the Instagram Graph API, specifically its oEmbed endpoint. This is the developer-friendly way to fetch an Instagram embed code programmatically.
Instead of hunting for the code manually, you're essentially asking Instagram's servers to hand it over. You provide the post's URL, and the API sends back the exact HTML you need. It’s a game-changer for any site that needs to display fresh Instagram content automatically.

So, How Does The oEmbed Endpoint Work?

Using the oEmbed endpoint means making a simple API call. You'll send a request to a special URL from Meta, but you need to include a couple of key things to get it to work.
You’ll always need two main ingredients for your request:
  • The Post URL: This is just the direct link to the public Instagram photo, Reel, or video you want to show.
  • An Access Token: Think of this as your secret handshake with the API. It proves you have permission to ask for data. You'll have to get this by setting up a Meta developer account.
From there, you just send a GET request to the oEmbed endpoint. The API will respond with a neat little JSON object packed with the post's info, including the all-important html property that contains the embed code.
While the API handles all this instantly behind the scenes, it's essentially just automating the simple manual process.
notion image
As you can see, grabbing the code manually is just three quick clicks. The API just does those same steps for you, but for potentially thousands of posts at once.

Manual Embed vs API oEmbed Method

So which approach is right for you? The quick copy-paste or the more technical API route? It really boils down to what you're trying to accomplish. Each has its place.
For a one-off post in your latest article, the manual method is a no-brainer. But for anything bigger or more automated, the API is the only way to go.
To make the choice crystal clear, here's a quick side-by-side look at the two methods.
Feature
Manual Embed (from Post)
API oEmbed Method
Use Case
Perfect for single posts in articles or on static pages.
Built for dynamic galleries, apps, and automated workflows.
Speed
Fast for one post, but incredibly slow for many.
Blazing fast for embedding tons of content at scale.
Technical Skill
Absolutely none. Anyone can do it in seconds.
Requires developer skills (API requests, access tokens).
Flexibility
You get what the embed popup gives you. That's it.
Full programmatic control over when and how you fetch content.
Ultimately, learning to work with the API gives you so much more power to integrate social proof seamlessly. To see what’s possible with these kinds of advanced setups, it's worth checking out how different integrations pull in user content. Getting a handle on how the Instagram embed code works under the hood really opens up a world of possibilities.
Alright, let’s give this section a more human touch.
Here’s the rewritten content:

Customizing the Look of Your Instagram Embeds

notion image
So you've dropped an Instagram embed onto your site, and... it looks a little clunky. That default embed code for instagram works, but the fixed width and weird border rarely match your site's design.
Don't worry, you're not stuck with it.
The secret is to wrap Instagram’s code in your own <div> container. This simple trick lets you apply your own CSS, giving you total control over how the post looks without breaking the original embed. It's the clean and safe way to make it look perfect.

Making Your Embeds Fully Responsive

The biggest headache with the default embed? It’s not responsive. On a phone, it spills out of the screen and creates that awful horizontal scrollbar. It's a bad look.
Here's how you fix it for good. First, wrap Instagram’s embed code in a <div> and give it a class name. We'll use instagram-embed-container.
Next, pop this little snippet into your site’s CSS file. This targets the <iframe> that Instagram's script creates and forces it to behave.
.instagram-embed-container iframe { width: 100% !important; min-width: 326px !important; } Now the embed will neatly scale down on smaller screens, but it won't get squished below Instagram's minimum width of 326px. Problem solved.

Polishing the Visual Details

With the responsive issue out of the way, we can get to the fun part—making it look great. A few extra lines of CSS can take your embed from "pasted-in" to professionally integrated.
Here are a few of my go-to CSS tricks for the .instagram-embed-container:
  • Center it perfectly: Use display: flex to center the post within its container.
  • Ditch the border: That thin gray border has got to go.
  • Add a clean shadow: A subtle box-shadow makes the embed pop and gives it a modern, card-like feel.
You can grab this CSS snippet to apply all these tweaks at once.
.instagram-embed-container { display: flex; justify-content: center; margin: 2rem auto; /* Adds some breathing room */ }
.instagram-embed-container blockquote { border: 0 !important; /* Kills the default border / box-shadow: 0 4px 12px rgba(0,0,0,0.1); / Adds a nice, soft shadow / border-radius: 8px; / Optional: rounds the corners for a modern look */ }
These small adjustments make a massive difference, turning a generic embed into a design element that actually belongs on your page. If you're looking for more ways to showcase social proof, you might want to check out how to build a https://testimonial.to/embed/wall, which uses similar styling principles to create a beautiful, engaging grid.
Mastering these little CSS tricks gives you complete control, ensuring your embedded content looks polished and professional every time.

Fixing Common Instagram Embed Problems

notion image
So, you’ve grabbed the embed code for instagram, pasted it onto your site, and... crickets. All you see is a blank box or some weird error message. It’s a pain, but trust me, we’ve all been there. Most of the time, the fix is way simpler than you think.
Before you start digging through your site's code base, let's walk through a few usual suspects. These are the issues I run into 99% of the time when an Instagram embed goes sideways.

The Account Is Set to Private

This is the big one. Seriously, it's the number one reason an embed fails. You can only embed content from public Instagram accounts. If the profile is locked down, Instagram’s API just won't play ball, leaving you with an empty space on your page.
There’s only one real fix here:
  • Quickly check the profile on Instagram. If you see a "Private Account" notice, that's your problem.
  • Reach out to the creator. You'll have to ask them to switch their account to public.
There's no magic code or workaround for this one. Instagram's privacy settings are ironclad.

Your Ad Blocker Is Getting in the Way

Sometimes the issue isn't your code—it's your own browser. I’ve had this happen more than once. Aggressive ad blockers and privacy extensions can mistake the embed script for a tracker and shut it down before it even has a chance to load.
Disabling the blocker for your site will fix it on your end. Just remember, some of your visitors running similar extensions might still hit the same wall.

The Embed Code Is Mangled

A simple copy-paste error can bring the whole thing down. One missing character in the <blockquote> or <script> tag is all it takes for the embed to fail. Double-check that you copied the entire code block from Instagram.
Another classic mistake is pasting the code into a visual editor that tries to be "helpful" by stripping out the script tag. You have to use a "Custom HTML" or "Code" block in your CMS. This tells your site to leave the code alone and render it as-is. If you need a refresher on troubleshooting, we have more guides like this over on our tutorials page.
Remember, embedding isn't just for looks; it’s about results. Using Instagram embeds for testimonials is a huge win. We've seen businesses that embed customer Reels get up to 3x higher CTR than they do with static images. People just connect with video. With carousels being a top format for business engagement, putting them directly on your site is a no-brainer.

Got Questions About Instagram Embeds? We've Got Answers.

Embedding Instagram posts seems simple enough, but it's easy to hit a few snags. From pesky technical glitches to tricky legal questions, a few common issues tend to pop up again and again.
Let's walk through the most frequent questions we see. Think of this as your go-to guide for getting those embeds working perfectly.

Can I Embed a Post from a Private Instagram Account?

That’s a hard no. The entire point of the embed feature is to share public content. If an account is locked down and private, Instagram’s API won't share the goods.
You’ll just end up with a broken-looking box or an error message on your site. So, before you even bother looking for the code, always double-check that the account is public. There are zero workarounds for this—it's a core privacy setting.

Is It Legal to Embed Someone Else's Instagram Post?

This is a great question, and an important one. Technically, when you use Instagram's official embed feature, you're using a sublicense to share that content. The embed automatically gives credit by including the creator's username and linking back to the original, which takes care of attribution.
But just because you can, doesn't always mean you should.
This simple step builds goodwill and keeps you on solid ethical ground, especially when you're using customer content in your marketing.

Why Won't My Embedded Instagram Reel Autoplay?

You've probably noticed that embedded Reels just sit there until you click play. That's actually by design. To keep from annoying visitors with unexpected audio, modern browsers like Chrome and Safari block most videos with sound from autoplaying.
This isn't a setting you can just flip with a bit of code; it's a rule enforced by both Instagram and the browser itself. The user has to initiate the action, which is now the standard for pretty much all video on the web.

How Do I Embed My Entire Instagram Feed?

If you want to show off your whole grid, you're going to need more than what Instagram's basic tool offers. The native embed feature is strictly for single posts, one at a time.
To display a full feed or a gallery from a hashtag, you’ll have to use a third-party widget or plugin. These tools are built to connect to the Instagram API and create the beautiful, dynamic galleries you're looking for.
  • WordPress: The plugin repository is filled with great options for this.
  • Shopify: The App Store has a ton of apps designed for creating shoppable Instagram galleries.
  • Custom Sites: You can use a service that provides a more advanced JavaScript widget to embed on any site.
These tools are made specifically to do what the standard embed code for instagram can't: display your entire feed in a clean, customizable way.
At Testimonial, we make it effortless to collect, manage, and showcase the powerful video and text testimonials that build trust and drive conversions. Learn how to automatically display your best social proof today!

Written by

Damon Chen
Damon Chen

Founder of Testimonial