ShopifyImages
Invalid image URL
Product image URL is not a valid http(s) URL.
What is this issue?
Product image URL is not a valid http(s) URL.
Errors Shopify shows for this
- Validation failed: An error occurred while trying to download the image
- Validation failed: getaddrinfo: nodename nor servname provided, or not known
- Validation failed: Invalid URL provided
Affected field:
Image SrcWhat it looks like in your file
| Title | Product image URL | |
|---|---|---|
| 2 | Linen Shirt | shirt.jpg |
| 3 | Ceramic Mug | C:\Photos\mug.png |
| Title | Product image URL | |
|---|---|---|
| 2 | Linen Shirt | https://cdn.shopify.com/s/files/shirt.jpg |
| 3 | Ceramic Mug | https://cdn.shopify.com/s/files/mug.png |
Upload your CSV to check for this issue and export a clean file.
Fix nowWhy Shopify rejects this
Shopify must be able to fetch images via a valid URL.
Common causes
- 1The image column holds a file name such as shirt.jpg from a folder on your computer; Shopify can only download from the web.
- 2The address was copied without https://, as in cdn.example.com/shirt.jpg.
- 3The address has spaces from the original file name, as in my shirt.jpg.
Valid values / expected format
- ✓Full URL starting with https:// or http://
- ✓Must be publicly accessible (no login required)
- ✓No spaces in the URL
- ✓Supported formats: JPG, PNG, WebP, GIF
- ✓Recommended: under 20 MB per image
Fix in StriveFormats
Upload your CSV to StriveFormats to detect this issue across all rows, with clear line-by-line reporting.
Fix in Excel
- 1In Excel, click the column letter for the Image Src column.
- 2Press Ctrl+H, find http:// and replace it with https://, then click Replace All. This upgrades insecure URLs.
- 3Scan the column for cells that start with // or just a filename like 'shirt.jpg'. Add https:// in front of each.
- 4Find ' ' (a single space), replace it with a hyphen, then click Replace All. This removes spaces from URLs.
- 5Click a sample URL and press F5, or paste it into a browser, to confirm the image or page loads correctly.
- 6Save as CSV UTF-8 (Comma delimited).
Fix in Google Sheets
- 1In Google Sheets, select the Image Src column.
- 2Press Ctrl+H, find http:// and replace it with https://, then click Replace All.
- 3Scan the column for cells starting with // or just a filename. Add https:// in front manually.
- 4Find ' ' (a single space) and replace it with a hyphen, then click Replace All to clean up spaces in URLs.
- 5Paste a sample URL into a new browser tab to confirm it loads correctly.
- 6Go to File > Download > Comma Separated Values (.csv).
Prevent it next time
- ✓Always use the full URL starting with https://. Never use relative paths or local file paths.
- ✓Before importing, paste a sample image URL into a browser to confirm it loads correctly.
- ✓Host all images on a reliable CDN or cloud storage before adding URLs to your CSV.
- ✓Avoid URL query parameters unless the platform explicitly supports them.
- ✓Keep image files under 20 MB and use standard formats: JPG, PNG, or WebP.
How StriveFormats detects this
StriveFormats checks the Image Src column by verifying that each non-empty value begins with http:// or https:// and does not contain spaces. Values that look like relative paths or local filenames are also flagged.
►Technical detail
Shopify's importer downloads each image from its URL during the import. The URL must be a full address starting with http:// or https:// so the importer can find the image. A relative path like "images/shirt.jpg" points nowhere, because the platform can't see files on your computer. Spaces in URLs must be written as %20 or replaced with hyphens, since most image hosts reject URLs with spaces in them.