Excel Error Codes

Fix the Excel IMAGE #BLOCKED! Error for HTTP Image URLs

Huma Ashraf ChHuma Ashraf Ch Nov 18, 2026 869 views

Question details

The user needs to restore images displayed by the Excel IMAGE function without replacing the existing worksheet.

Fix the Excel IMAGE #BLOCKED! Error for HTTP Image URLs
Product
Microsoft Excel for Mac
Device & OS
macOS
Scenario
An existing worksheet uses HTTP links as sources for online images.
Observed behavior
Images that previously displayed now return the #BLOCKED! error.
Before you start

Identify a cell containing an image URL and check whether it begins with http://. Confirm that the same image is available at an https:// address before changing the formula.

Solution 1Recommended

Change HTTP image URLs to HTTPS in the existing worksheet

Use this method when the image host supports HTTPS and the IMAGE function refers to an HTTP URL.

1
Check the secure URL

Copy an image URL into your browser, replace http:// with https://, and confirm that the image opens without signing in.

2
Update the IMAGE formula

If A2 contains the original URL, edit the image cell to use =IMAGE(SUBSTITUTE(A2,"http://","https://")). Keep any additional IMAGE arguments from your existing formula as needed.

3
Apply the change

Press Enter and check whether the image appears. If other image cells use the same pattern, fill the revised formula into those cells.

Change HTTP image URLs to HTTPS in the existing worksheet
HTTPS support is required: Replacing the prefix does not make a host support HTTPS. If the secure URL does not work, use a valid HTTPS image URL from a host that allows external access.
Free Microsoft Office alternative

Work with spreadsheet images in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with spreadsheets. Open compatible Excel files in WPS Spreadsheet and insert images manually when suitable. IMAGE formulas and external links may behave differently, so check your workbook after opening it.

Insert pictures directly into a spreadsheet as an alternative to linked imagesOpen and save compatible Microsoft Excel XLSX filesUse a familiar spreadsheet interface for an easier transitionWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel IMAGE return #BLOCKED! for an HTTP link?

Excel can block an insecure HTTP image source. Test whether the host provides the same image over HTTPS, then update the URL or use SUBSTITUTE in the IMAGE formula.

Can I fix the URLs without creating a new worksheet?

Yes. Edit the IMAGE formulas in the existing worksheet. For a URL in A2, try =IMAGE(SUBSTITUTE(A2,"http://","https://")) and retain any other IMAGE arguments you need.

What if the HTTPS image opens in my browser but not in Excel?

Test another public HTTPS image with the IMAGE function. The original host, your network, or your organization's settings may restrict Excel's request even when the browser can open it.

Where can I check privacy settings in Excel for Mac?

Open Excel > Preferences and look for privacy or connected-experience settings. The available settings depend on your Excel version and whether your organization manages them.