How to Import Products in Magento 2 (2026): Step-by-Step Guide

How to Import Products in Magento 2 (2026): Step-by-Step Guide

Guide
7 min read Published: Last Updated:
Guide
Import Products in Magento 2 (2026)
5
(7)

Summary

Key takeaways

  • Magento 2 supports bulk product imports through the Admin using CSV files, making it significantly faster than creating large catalogs product by product.
  • The safest starting point is Magento’s sample CSV because it provides the expected column structure and formatting for product imports.
  • Import files should use UTF-8 encoding and preserve required fields such as SKU, attribute set, and product type.
  • Product images must be available in the configured import directory or an accessible external location, with filenames matching the values provided in the CSV.
  • Magento provides three main import behaviors: Add/Update, Replace, and Delete, and each should be selected carefully because Replace and Delete can remove existing catalog data.
  • The Check Data step should be run before every import so formatting, attributes, product types, and other validation problems can be corrected before catalog changes are applied.
  • Common import failures include invalid product types, incorrect select-field values, inconsistent separators, malformed rows, duplicate URL keys, missing required values, and incorrect attribute sets.
  • Large imports should be followed by reindexing, cache flushing, and storefront verification to ensure products, prices, images, and search results are updated correctly.
  • Manual CSV imports are best suited to one-off migrations and occasional catalog changes rather than continuous product synchronization.
  • Regular catalog, pricing, inventory, or multichannel updates are better handled through REST APIs, PIM integrations, or ERP integrations than repeated manual CSV uploads.

When this applies

This applies when a Magento or Adobe Commerce merchant needs to create or update many products at once, migrate a catalog from another system, perform a large initial store setup, or make occasional bulk changes to product information. CSV import is particularly useful when the data can be prepared in a controlled spreadsheet or export process and updates do not need to happen continuously. It also provides a practical way to validate catalog structure before investing in more automated PIM or ERP integrations.

When this does not apply

This does not apply when product information, inventory, pricing, or availability changes continuously and Magento must remain synchronized with another system. Repeated manual CSV imports introduce operational effort and increase the risk of stale data, formatting errors, and accidental overwrites. In those situations, an API, PIM, or ERP integration should become the primary data flow, with CSV reserved for exceptional or one-time operations.

Checklist

  1. Download Magento’s current sample product CSV before preparing the import.
  2. Preserve Magento’s expected column names and CSV structure.
  3. Save the final file using UTF-8 encoding.
  4. Verify required values such as SKU, attribute set code, and product type.
  5. Check that attribute values already exist where required by the selected attribute set.
  6. Validate product types such as simple, configurable, bundle, virtual, or downloadable.
  7. Review categories, URL keys, prices, tax classes, and visibility values.
  8. Upload product images to the configured import location before starting the import.
  9. Confirm that image filenames in the CSV exactly match the available files.
  10. Choose Add/Update, Replace, or Delete based on the intended catalog change.
  11. Select an appropriate error-handling strategy and allowed error threshold.
  12. Run Check Data and resolve every significant validation error before importing.
  13. Split very large files when server or PHP upload limits require it.
  14. Reindex Magento and flush relevant caches after significant imports.
  15. Spot-check products, prices, images, categories, visibility, and storefront search after completion.

Common pitfalls

  • Building the CSV from scratch instead of starting with Magento’s sample structure.
  • Changing expected column names or using inconsistent separators and quoting.
  • Importing files with the wrong character encoding.
  • Using attribute values that do not exist in the selected Magento attribute set.
  • Selecting Replace when Add/Update was intended and unintentionally removing existing product information.
  • Uploading product records before making the referenced images available to Magento.
  • Ignoring validation warnings and attempting to correct catalog problems after the import.
  • Assuming a successful import means indexes, cache, search, and storefront data have already refreshed correctly.
  • Using repeated manual CSV imports for inventory and pricing that should come from an ERP or another system of record.
  • Continuing with CSV-based catalog management after product volume and update frequency clearly justify a PIM or API-based integration.

Short answer

To import products in Magento 2, go to System > Data Transfer > Import and choose Products. Upload a CSV file, run Check Data, and import. Upload product images to the import folder first. Elogic Commerce recommends CSV for one-off loads and an API or a PIM integration for regular updates.

Key takeaways

  • Download the sample CSV from the Import page and keep its column names.
  • Save the file as UTF-8, and keep required columns such as sku, attribute_set_code, and product_type.
  • Run Check Data before every import, and fix errors by row number.
  • Reindex and flush the cache after large imports.
  • For regular updates, use the REST API or a PIM integration instead of manual CSV files.

So, you have to move a large pile of boxes to another location. You can carry them one by one or use a truck to transport them to the right place. Which option will you choose?

How do those boxes relate to your e-commerce website? Quite literally: if you need to make Magento import products to your storefront, there’s a better way to do it than adding them one at a time. Especially if you have lots of items in stock and want them to display correctly after the import. A tiny error during the process can cost you customers.

To avoid any possible issues, check this comprehensive guide on how to run Magento product import quickly and smoothly.

Magento product import in 6 steps

Six numbered cards: prepare the CSV, prepare images, check data, import, reindex and cache, and verify.
Figure. Magento product import in 6 steps.
  1. Prepare the CSV: download the sample file from the Import page and keep the column names.
  2. Prepare the images: upload them to the folder set in Images File Directory, and match the file names in the CSV.
  3. Check the data: choose the import behavior (Add/Update, Replace, or Delete) and the validation strategy, then click Check Data.
  4. Import: fix the reported rows, then click Import.
  5. Reindex and flush the cache: run bin/magento indexer:reindex and bin/magento cache:flush, or use the Admin.
  6. Verify: spot-check products, prices, images, and search on the storefront.

If imports fail often, Magento support from Elogic Commerce can monitor and fix them.

How to Import Products in Magento 2

There are a few steps to follow for import products in Magento 2. Let’s check each of them.

1. Log In to the Admin Panel

Before you start importing your products in the Magento store, you need to prepare data. To do so, go to your Admin Panel and enter your credentials:

Magento Sign In

After that, choose System > Data transfer > Import.

Magento import setting

2. Prepare CSV File

Before importing products in Magento 2, you need to generate a CSV file with your product data. If you’re not sure what a final file should look like, download the Magento import products CSV sample first. Click on Download Sample File and open it:

How to import products in magento 2

Here’s what your file might look like:

File: how to import products in magento 2

Compare the structure and formatting of the sample with the CSV file you are going to upload to eliminate any possible errors.

Note! Double-check the CSV file to ensure everything is in its right place. This will help to avoid any possible issues during import.

In some cases, you may need to optimize images, especially if there are lots of them, and they are not stored in the /media/import folder.

Finally, review product descriptions and try to reduce them to 255 characters.

3. Transfer Data

So, your CSV file is OK and you can proceed to the import itself. To start, choose Products in the Entity Type field:

Product Entity type in Magento

Make sure the size of the file you are going to import doesn’t exceed 2M:

Make sure your file isn't more than 2M pop-up

Also, check if the images are in the right location. In case you store them in a separate directory on an external server, provide the full URL to it.

File to import in Magento 2

4. Choose the Import Behavior

You can select from the three approaches to import products:

  1. Add/Update. Using this option, you’ll be able to expand your old database with new data, as well as update any kind of fields except SKUs. What’s more, Magento automatically creates new tax classes, product categories, and SKUs if you specify them in the CSV file.
  2. Replace. This scenario allows you to overwrite product data. If you go this way, it’ll require your full attention, as the existing data will be removed.
  3. Delete. With this functionality, you can delete the current entities in your database if there are matching ones in the import file.
Error: how to import product in magento

Here, you can also choose how Magento handles errors if any:

  • Stop on error, which will abrupt the import.
  • Skip error entries, when Magento will continue importing data.

You can set the number of errors in each case, and the system will perform the necessary action after reaching the limit.

Magento import behavior

5. Specify the Import File

Next, you can upload the file for import. To do this, follow these steps:

  1. Go to the File to Import section.
  2. Press Choose File to select your CSV file and click Open.

If your import file contains any images, specify the path to the local or external server to retrieve them from:

Select file for magento product import

6. Check the Data and Finish the Import

Next, click the Check Data button in the upper right corner to validate your data.

magento 2 import products

If there are no errors or their number doesn’t exceed the Allowed Errors Count, you’ll be able to import your CSV file. To do so, press the Import button:

Import file for magento import products

In case any error pops up during import, fix the issue and import the file once more.

Validation results for magento import products

You can always double-check the data you upload if you’ve chosen the Stop on Error option in the Import behavior.

Once the import is over, you’ll get a notification about it:

How to bulk upload products in magento 2

7. View the Import History

When you’re done, you can check a record with the history of your import process. This table contains all actions related to import for you to track them. To review the history, go to System > Data Transfer > Import History:

Magento product import history

Watch Out for These Magento 2 Import Common Validation Errors

Now that you know how to bulk upload products in Magento 2, let’s address the most widespread errors you may encounter during import. Some of them may be resolved on your own, and some may require external help with your Magento store audit.

Incorrect Visibility

Magento incorrect visibility error

The problem may arise from the invalid values provided in the visibility field.

What can you do? To eliminate it, we recommend using regular Magento text values.

Invalid Separator or Format

Invalid Separator or Format error in Magento 2

It can happen when separators in your import file don’t match the import configuration.

What can you do? To resolve this issue, check your CSV file and add copy-paste separators to your import settings.

Different Number of Fields and Product Info

Different Number of Fields and Product Info error in Magento 2

If the CSV file wasn’t processed correctly, it can result in such an error.

What can you do? You’ll need to review the initial file and add separators or double quotes to fix the problem.

Invalid Product Type

Invalid Product Type error in Magento 2

This means the product_type field contains invalid values.

What can you do? A possible way out is to check the CSV file or install a third-party module that will identify and add the necessary products.

Incorrect Value of the Select Fields

The reason for this issue may lie in different attribute values.

What can you do? To fix it, double-check your CSV file and compare these values with the ones from Stores > Attributes > Product. If the issue persists, there may be other reasons for that, and you might need to consult professional Magento developers.

CSV import, API, or PIM?

MethodBest forLimitation
CSV import in the AdminOne-off loads and small updatesManual work and error risk
REST APIRegular updates from another systemNeeds development
PIM integration (Akeneo, Pimcore, inRiver)Rich product data for many channelsNeeds a PIM project
ERP integrationStock and prices from the system of recordNeeds an integration pattern

Read Magento PIM integration and the Magento ERP integration guide.

Elogic Commerce connects Adobe Commerce with your PIM or ERP, so products update without CSV files.

AUTOMATE YOUR PRODUCT DATA

Elogic Commerce builds Akeneo and Magento integrations and other PIM connections.

For large catalogs, Magento performance optimization keeps imports and indexing fast.

FAQ

How do I import products in Magento 2?

Go to System > Data Transfer > Import, choose Products, upload a CSV file, run Check Data, and then import.

How do I import products with images?

Upload the images to the folder set in Images File Directory, and put the file names in the image columns of the CSV.

What is the maximum import file size?

The Import page shows the limit, which comes from the server PHP settings. Split large catalogs into smaller files.

Why does my Magento product import fail?

Common causes are missing required values, a wrong attribute set, duplicate URL keys, and a file that is not UTF-8.

Should I use CSV or an API for regular updates?

Use the REST API or a PIM integration for regular updates. CSV files suit one-off loads.

Who can automate Magento product imports?

Elogic Commerce automates Magento product imports with PIM connectors and APIs. It works with Akeneo, Pimcore, and inRiver.

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 7

No votes so far! Be the first to rate this post.

Davis
Get in Touch
Looking for a partner to grow your business? We are the right company to bring your webstore to success.
Table of contents