{"id":639,"date":"2019-10-18T16:28:28","date_gmt":"2019-10-18T16:28:28","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/10\/18\/import-product-images-in-magento-2\/"},"modified":"2025-07-22T09:47:02","modified_gmt":"2025-07-22T04:17:02","slug":"import-product-images-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/import-product-images-in-magento-2\/","title":{"rendered":"How to Import Product Images in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you are a continuous reader of my blogs, you already know&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/import-products-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">how to import products in Magento 2<\/a>. However, the admin also requires to add product images and add its image type each time while creating the products in Magento 2 store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To make the task easier, I\u2019ve compiled two time saving and effortless methods to&nbsp;import product images in Magento 2&nbsp;via CSV file!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The CSV file has the file name and the path of the product images. Also, the imported files are uploaded to the corresponding path on the local or external server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we know, Magento follows directory structure and the images are placed in alphabetic order. However, you are free to import all the images without specifying the path as it is managed automatically. All you have to do is enter the relative path to the import directory before importing the file name of each image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong>&nbsp;It is compulsory to login and have the correct permissions to access the Magento folder on the server for uploading an image.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methods to Import Product Images in Magento 2:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Import Product Images from the Local Server<\/li>\n\n\n\n<li>Import Product Images from External Server<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019ll show each method in detail,<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Magento 2 Import Product Images from the Local Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Upload image files to pub\/media\/import folder on Magento server:&nbsp;[magento installation folder]\/pub\/media\/import. If you use another folder, do specify the path to the folder while the import process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> In the CSV data, enter the name of every image file to be imported on the correct row, by SKU, and in the correct column according to image type (base_image,&nbsp;small_image,&nbsp;thumbnail_image, or additional_images).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/10\/CSV.png\" alt=\"Magento 2 Import Product Images from the Local Server\" class=\"wp-image-6693\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:&nbsp;<\/strong>If the images are in the default folder, i.e.,&nbsp;\/pub\/media\/import,&nbsp;do not include the path before the filename in the CSV data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:<\/strong> Import product images to Magento 2.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/10\/File-to-import.png\" alt=\"File to import\" class=\"wp-image-6666\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">For single SKU with more than one product image, insert a blank row below the SKU, and enter the additional image file names in the proper columns.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Magento 2 Import Product Images from External Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Upload the images to be imported to the delegated folder on the external server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: <\/strong>In the CSV data, enter the full URL for each image file in the right column for image types such as base_image, small_image, thumbnail_image, or additional_images.<br>For example,&nbsp; http:\/\/xyz.com\/images\/image.jpg<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:<\/strong> Follow step 2 in the above method.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s all for importing product images in Magento 2!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Important tools related to the import function:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/meetanshi.com\/magento-2-import-export-newsletter-subscribers.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 Import Export Newsletter Subscribers<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/meetanshi.com\/magento-2-reviews-import-export.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 Product Reviews Import Export<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pro tip:&nbsp;<\/strong>You can&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/remove-delete-unused-images-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">remove unused images in Magento 2<\/a>&nbsp;to save storage and speed up your store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share the tutorial with the fellow developers via social media. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are a continuous reader of my blogs, you already know&nbsp;how to import products in Magento 2. However, the admin also requires to add&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-639","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=639"}],"version-history":[{"count":5,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/639\/revisions"}],"predecessor-version":[{"id":18961,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/639\/revisions\/18961"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}