logo
search
File Sharing Problems

How to Fix OneDrive Embedded Photos Not Displaying on Websites

Algirdas JasaitisAlgirdas Jasaitis Sep 28, 2026 869 views

Question details

Newer photos embedded from OneDrive are failing to display on blogs, webpages, or Power BI, whereas older embedded photos continue to load correctly.

How to Fix OneDrive Embedded Photos Not Displaying on Websites
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Embedding images hosted on Microsoft OneDrive into external webpages, blogs, or Power BI dashboards for public or organizational viewing.
Observed behavior
Newly embedded photos show broken image links or fail to load entirely, likely due to updated OneDrive access policies, altered embedding behavior, or strict sharing permissions.
Before you start

Verify that your Microsoft account is currently active and that the affected image files have not been moved, renamed, or deleted from your OneDrive folder.

Solution 1Recommended

Recreate the Embed Link Using Current OneDrive Settings

Generate a fresh embed code directly from the OneDrive web interface to ensure it complies with Microsoft's latest authentication and embedding policies.

Microsoft periodically updates its security and embedding protocols. Simply copying a file URL from your browser's address bar is no longer sufficient for displaying images on external sites. You must use the dedicated 'Embed' feature to generate a permanent, public-facing HTML tag or URL.

1
Sign in to OneDrive Web

Navigate to the OneDrive website in your browser and log in with the account hosting the photos.

2
Select the Photo

Locate the image you want to embed, right-click it (or check the circle in the upper-right corner of the file), and select 'Embed' from the top menu or context menu.

3
Generate the Embed Code

In the Embed panel on the right side of the screen, click 'Generate' to create the HTML code. You can also extract the direct image URL from the 'src' attribute within this code.

4
Update Your Website

Copy the generated code or URL and replace the broken image link in your blog, webpage, or Power BI dashboard.

Recreate the Embed Link Using Current OneDrive Settings
Tip: Using the official Embed feature ensures the image bypasses standard login prompts, making it visible to public visitors.
Free Microsoft Office alternative

Manage and Share Files Seamlessly with WPS Office

If you are experiencing ongoing frustration with Microsoft's cloud embedding policies or file sharing restrictions, consider using WPS Office. It provides an intuitive, lightweight, and free alternative with powerful built-in cloud storage for reliable file management.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free software on your device.
  2. 2. Sign In to WPS Cloud: Launch the application and log in to activate your free WPS Cloud storage space.
  3. 3. Upload and Share: Upload your documents or images to WPS Cloud, right-click, and select 'Share' to generate reliable, secure public links.
Completely free, lightweight, and easy to navigate for everyday tasks.Fully compatible with Microsoft Office file formats (Word, Excel, PowerPoint).Seamlessly save, manage, and share documents with built-in WPS Cloud.Generate stable, easily accessible sharing links with customizable permissions.
microsoft office alternative - wps office

Frequently Asked Questions

Why do my older OneDrive embedded photos still work but new ones don't?

Microsoft frequently updates its security policies and sharing mechanisms. Older embed links are often grandfathered in and continue to function, whereas new files require adherence to the latest embed code formats and stricter authentication rules.

Can I just copy the URL from my browser to embed a OneDrive image?

No. Copying the URL from the browser's address bar only links to the OneDrive web viewer, which requires authentication and contains web page elements. To display an image natively on a website, you must use the 'Embed' option to generate a direct, public-facing source link.

Does Power BI require special permissions for OneDrive images?

Yes. Power BI dashboards require image URLs to be completely public and directly accessible. If the OneDrive link requires authentication or involves a web redirect, Power BI cannot render the image, resulting in a broken visual.

What if the 'Anyone with the link' option is grayed out?

If you are using a OneDrive for Business or School account, your organization's IT administrator may have disabled external or anonymous sharing. You will need to contact your IT department to allow public sharing for those specific files.