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
- Download Magento’s current sample product CSV before preparing the import.
- Preserve Magento’s expected column names and CSV structure.
- Save the final file using UTF-8 encoding.
- Verify required values such as SKU, attribute set code, and product type.
- Check that attribute values already exist where required by the selected attribute set.
- Validate product types such as simple, configurable, bundle, virtual, or downloadable.
- Review categories, URL keys, prices, tax classes, and visibility values.
- Upload product images to the configured import location before starting the import.
- Confirm that image filenames in the CSV exactly match the available files.
- Choose Add/Update, Replace, or Delete based on the intended catalog change.
- Select an appropriate error-handling strategy and allowed error threshold.
- Run Check Data and resolve every significant validation error before importing.
- Split very large files when server or PHP upload limits require it.
- Reindex Magento and flush relevant caches after significant imports.
- 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, andproduct_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
- Prepare the CSV: download the sample file from the Import page and keep the column names.
- Prepare the images: upload them to the folder set in Images File Directory, and match the file names in the CSV.
- Check the data: choose the import behavior (Add/Update, Replace, or Delete) and the validation strategy, then click Check Data.
- Import: fix the reported rows, then click Import.
- Reindex and flush the cache: run
bin/magento indexer:reindexandbin/magento cache:flush, or use the Admin. - 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:
After that, choose System > Data transfer > Import.
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:
Here’s what your file might look like:
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:
Make sure the size of the file you are going to import doesn’t exceed 2M:
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.
4. Choose the Import Behavior
You can select from the three approaches to import products:
- 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.
- 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.
- Delete. With this functionality, you can delete the current entities in your database if there are matching ones in the import file.
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.
5. Specify the Import File
Next, you can upload the file for import. To do this, follow these steps:
- Go to the File to Import section.
- 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:
6. Check the Data and Finish the Import
Next, click the Check Data button in the upper right corner to validate your data.
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:
In case any error pops up during import, fix the issue and import the file once more.
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:
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:
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
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
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
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
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?
| Method | Best for | Limitation |
|---|---|---|
| CSV import in the Admin | One-off loads and small updates | Manual work and error risk |
| REST API | Regular updates from another system | Needs development |
| PIM integration (Akeneo, Pimcore, inRiver) | Rich product data for many channels | Needs a PIM project |
| ERP integration | Stock and prices from the system of record | Needs 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.
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.