{"id":2991551,"date":"2019-11-13T00:00:00","date_gmt":"2019-11-13T00:00:00","guid":{"rendered":"http:\/\/www.wpallimport.com\/documentation\/import\/images\/importing-images-from-urls\/"},"modified":"2025-12-08T17:47:44","modified_gmt":"2025-12-08T17:47:44","slug":"import-images-from-urls","status":"publish","type":"documentation","link":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/","title":{"rendered":"Importing Images From URLs"},"content":{"rendered":"\n<p>WP All Import allows you to import images directly from URLs in the <strong>Images<\/strong> section of the <strong>Drag &amp; Drop<\/strong> screen during the import process. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"download-images\">Download Images Hosted Elsewhere<\/h2>\n\n\n\n<p>When mapping your import template, choose the option&nbsp;<strong>Download image(s) hosted elsewhere<\/strong>&nbsp;to import images from a URL starting with http:\/\/ or https:\/\/.<\/p>\n\n\n\n<p>You need to drag and drop the element or attributes containing your image URLs or filenames to the text box:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2025\/10\/Download-Images-Hosted-Elsewhere-URL.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"752\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2025\/10\/Download-Images-Hosted-Elsewhere-URL-1024x752.png\" alt=\"Download Images Hosted Elsewhere URL\" class=\"wp-image-13119989\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2025\/10\/Download-Images-Hosted-Elsewhere-URL-1024x752.png 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2025\/10\/Download-Images-Hosted-Elsewhere-URL-300x220.png 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2025\/10\/Download-Images-Hosted-Elsewhere-URL-768x564.png 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2025\/10\/Download-Images-Hosted-Elsewhere-URL-1536x1128.png 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2025\/10\/Download-Images-Hosted-Elsewhere-URL.png 1868w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>You can use the <strong>Preview &amp; Test<\/strong> button to see the final URLs that WP All Import will attempt use for the downloads. You can also run tests there to ensure that the images download correctly. <\/p>\n\n\n\n<p>If your images are not importing as expected, the cause is almost always that the URLs you specified don\u2019t actually point to valid images.<\/p>\n\n\n\n<p>Make sure one complete image URL is present on each line, or that your complete image URLs are separated by the specified separator character (it's a comma by default).<\/p>\n\n\n\n<p>When the import runs, it will download the images and add them to your Media Library.<\/p>\n\n\n\n<p>Below are some examples to help you import images:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example1\">Example 1 \u2013 Constructing Image URLs from the File Name<\/h2>\n\n\n\n<p>If your XML or CSV file only contains the image file name, not the complete URL to the file, you\u2019ll have to construct the URL by prepending the&nbsp;image file name with the URL to the folder containing it.<\/p>\n\n\n\n<p>In your file:&nbsp;<em>&lt;image&gt;my-image-name.jpg&lt;\/image&gt;<\/em><br>Image URL:&nbsp;<em>http:\/\/example.com\/my-folder\/my-image-name.jpg<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/07\/Import-Images-Compose-URL.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"315\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/07\/Import-Images-Compose-URL-1024x315.jpg\" alt=\"Import Images Compose URL\" class=\"wp-image-5811984\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/07\/Import-Images-Compose-URL-1024x315.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/07\/Import-Images-Compose-URL-300x92.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/07\/Import-Images-Compose-URL-768x236.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/07\/Import-Images-Compose-URL-1536x473.jpg 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2023\/07\/Import-Images-Compose-URL.jpg 1924w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>If there are multiple images in the {image[1]} element, you can use a function like this to prepend the URL to all of them: <a href=\"https:\/\/www.wpallimport.com\/snippets\/prepend-url-to-multiple-images-in-a-single-element\/\">Prepend URL to multiple images in a single import element<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example2\">Example 2 \u2013 Importing From Attributes<\/h2>\n\n\n\n<p>If your images are in an attribute and not an element, make sure you click and drag the attribute, not the element. Attributes only exist in XML files.<\/p>\n\n\n\n<p>Here's an example of an attribute:<\/p>\n\n\n\n<p><em>&lt;element&nbsp;<strong>attribute<\/strong>=\u201dhttp:\/\/example.com\/image-1.jpg\u201d \/&gt;<\/em><\/p>\n\n\n\n<p>If your image URLs are stored in attributes, not elements,&nbsp;click and drag 'attribute' to the image URLs textbox, not 'element'.<\/p>\n\n\n\n<p>Another example:<\/p>\n\n\n\n<p><em>&lt;img&nbsp;url=\u201dhttp:\/\/example.com\/image-1.jpg\u201d \/&gt;<\/em><\/p>\n\n\n\n<p>Drag 'url' to the image URLs textbox, so the textbox contains {img[1]\/@url}, not just {img[1]}. That way, you import from an attribute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"import-images-from-computer\">Importing Images From Your Computer<\/h2>\n\n\n\n<p>If you have the images you wish to import on your computer\/localhost, you\u2019ll need to upload them online before WP All Import can import them.<\/p>\n\n\n\n<p>The easiest way to do this is to create a folder on your website called \u201cimages\u201d and then upload all the images to this folder \u2013 i.e., http:\/\/your-site.com\/images\/&lt;upload-your-images-here&gt;<\/p>\n\n\n\n<p>Then follow the normal procedure for importing images from a URL, as explained above.<\/p>\n\n\n\n<p>If you have a .zip\/.gz\/.gzip file containing your XML and CSV file and all associated images, you can\u2019t import this file directly \u2014 you need first to unzip it, get the images out, and upload them somewhere so that WP All Import can import them.<\/p>\n\n\n\n<div class=\"docs-interstitial\">\n\n    <img decoding=\"async\" src=\"https:\/\/www.wpallimport.com\/wp-content\/plugins\/custom-acf-blocks\/blocks\/docs-interstitial\/img\/octopus-logo.svg\" class=\"docs-interstitial__logo\">    <h3>Import Everything into WordPress, Including Images<\/h3>\n    <ul><li>Any post type<\/li><li>Get Images from URL or Media Library<\/li><li>Image Metadata<\/li><\/ul>\n    <div class=\"docs-interstitial__cta\">\n        <a class=\"docs-interstitial__btn\" href=\"#pricing\" target=\"_self\">View Pricing<\/a>\n                    <a class=\"docs-interstitial__text-link\" href=\"https:\/\/www.wpallimport.com\/import-wordpress-csv-xml-excel\/\" target=\"_self\">\n                Product Tour\n                <div class=\"docs-interstitial__text-link-arrow\">\n                    <svg width=\"13\" height=\"11\" viewBox=\"0 0 13 11\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M8 1.5L12 5.5L8 9.5\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path>\n                    <path d=\"M11.5 5.5H1\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"><\/path>\n                    <\/svg>\n                <\/div>\n            <\/a>\n            <\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Related Docs<\/h2>\n\n\n\n\n\n<p>Learn how to import images from the Media Library.<\/p>\n\n\n\n\n\n<p>Shows you how to import images uploaded to \/wp-content\/uploads\/wpallimport\/files\/.<\/p>\n\n\n\n\n\n<p>Explains how to import multiple images per record.<\/p>\n\n\n\n\n\n<p>Provides more details on importing image metadata.<a href=\"https:\/\/www.wpallimport.com\/documentation\/image-options\/\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n\n\n<p>Explains the different images options available.<\/p>\n\n\n\n\n\n<p>Provides instructions on how to run PHP code during the import.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Importing images from URLs listed in your CSV or XML file is made easy when using WP All Import's powerful image import support.<\/p>\n","protected":false},"author":96198,"featured_media":2990159,"parent":2991548,"menu_order":1,"template":"","tags":[138],"content_author":[213],"search_tags":[148],"class_list":["post-2991551","documentation","type-documentation","status-publish","has-post-thumbnail","hentry","tag-w-article","content_author-editorial-staff","search_tags-import-images"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Import Images from URLs in your CSV or XML File - WP All Import<\/title>\n<meta name=\"description\" content=\"Importing images from URLs listed in your CSV or XML file is made easy when using WP All Import&#039;s powerful image import support.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Import Images from URLs in your CSV or XML File - WP All Import\" \/>\n<meta property=\"og:description\" content=\"Importing images from URLs listed in your CSV or XML file is made easy when using WP All Import&#039;s powerful image import support.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/\" \/>\n<meta property=\"og:site_name\" content=\"WP All Import\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/groups\/wpallimport\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-08T17:47:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png\" \/>\n\t<meta property=\"og:image:width\" content=\"779\" \/>\n\t<meta property=\"og:image:height\" content=\"324\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data2\" content=\"Editorial Staff\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/\",\"url\":\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/\",\"name\":\"Import Images from URLs in your CSV or XML File - WP All Import\",\"isPartOf\":{\"@id\":\"https:\/\/www.wpallimport.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png\",\"datePublished\":\"2019-11-13T00:00:00+00:00\",\"dateModified\":\"2025-12-08T17:47:44+00:00\",\"description\":\"Importing images from URLs listed in your CSV or XML file is made easy when using WP All Import's powerful image import support.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#primaryimage\",\"url\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png\",\"contentUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png\",\"width\":779,\"height\":324},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wpallimport.com\/#website\",\"url\":\"https:\/\/www.wpallimport.com\/\",\"name\":\"WP All Import\",\"description\":\"Import XML &amp; CSV to WordPress\",\"publisher\":{\"@id\":\"https:\/\/www.wpallimport.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wpallimport.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wpallimport.com\/#organization\",\"name\":\"WP All Import\",\"url\":\"https:\/\/www.wpallimport.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg\",\"contentUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg\",\"width\":199,\"height\":37,\"caption\":\"WP All Import\"},\"image\":{\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Import Images from URLs in your CSV or XML File - WP All Import","description":"Importing images from URLs listed in your CSV or XML file is made easy when using WP All Import's powerful image import support.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/","og_locale":"en_US","og_type":"article","og_title":"Import Images from URLs in your CSV or XML File - WP All Import","og_description":"Importing images from URLs listed in your CSV or XML file is made easy when using WP All Import's powerful image import support.","og_url":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/","og_site_name":"WP All Import","article_author":"https:\/\/www.facebook.com\/groups\/wpallimport","article_modified_time":"2025-12-08T17:47:44+00:00","og_image":[{"width":779,"height":324,"url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes","Written by":"Editorial Staff"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/","url":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/","name":"Import Images from URLs in your CSV or XML File - WP All Import","isPartOf":{"@id":"https:\/\/www.wpallimport.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#primaryimage"},"image":{"@id":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png","datePublished":"2019-11-13T00:00:00+00:00","dateModified":"2025-12-08T17:47:44+00:00","description":"Importing images from URLs listed in your CSV or XML file is made easy when using WP All Import's powerful image import support.","breadcrumb":{"@id":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wpallimport.com\/documentation\/import-images-from-urls\/#primaryimage","url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png","contentUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/importing-images-from-url.png","width":779,"height":324},{"@type":"WebSite","@id":"https:\/\/www.wpallimport.com\/#website","url":"https:\/\/www.wpallimport.com\/","name":"WP All Import","description":"Import XML &amp; CSV to WordPress","publisher":{"@id":"https:\/\/www.wpallimport.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpallimport.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wpallimport.com\/#organization","name":"WP All Import","url":"https:\/\/www.wpallimport.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg","contentUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg","width":199,"height":37,"caption":"WP All Import"},"image":{"@id":"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation\/2991551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/users\/96198"}],"version-history":[{"count":0,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation\/2991551\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/documentation\/2991548"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/media\/2990159"}],"wp:attachment":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/media?parent=2991551"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/tags?post=2991551"},{"taxonomy":"content_author","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/content_author?post=2991551"},{"taxonomy":"search_tags","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/search_tags?post=2991551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}