How to update stock for many WooCommerce products at once
After a stock count, a delivery or a weekend at a market, dozens or hundreds of quantities in the shop are wrong. Opening each product is not an option. WooCommerce gives you two ways of its own, and both work, with traps worth knowing.
In short: to set the same quantity on many products, or add the same number to each, use the product list's bulk edit. To give each product its own number, import a CSV file that holds nothing but ID or SKU and Stock, with Update existing products ticked.
Way 1: the bulk edit in the product list
- First, export the stock as it is now. This way has no undo. Go to Products → All Products, select Export, choose the columns ID, Type, SKU, Name and Stock, and select Generate CSV. Keep the file untouched: it is your record of the old numbers.
- Go to Products → All Products. Filter if you want (category, product type, stock status), and select Filter.
- Tick the products, choose Edit in the Bulk actions menu (newer versions call it Bulk edit), and select Apply.
- Set Manage Stock to Yes if the shop should count stock for these products.
- At Stock Qty, choose Change to, Increase existing stock by or Decrease existing stock by, and type the number.
- To change only the status, use In stock: In stock, Out of Stock or On backorder.
- Select Update, and check a few products.
Its limits
- One number for all. Every ticked product gets the same quantity, or the same increase. It cannot give each product its own count.
- One page of the list at a time. You can show more products on a page under Screen Options, but WooCommerce warns that very high numbers can strain the server.
- Variations are separate. A variation's stock is set inside its product, on the Variations tab, where the Bulk actions menu has Stock and the stock statuses. That reaches the variations of one product at a time.
- No preview and no undo. The export from the first step is your record of the old numbers.
Way 2: a CSV file with only the stock
This is the way that was suggested on WordPress.org's forum to a shop owner who wanted to bring in nothing but stock numbers.
- Go to Products → All Products and select Export. Choose the columns ID, Type, SKU, Name and Stock, and select Generate CSV. Keep one untouched copy.
- Open the file in a spreadsheet and type the new quantities into the Stock column. If the numbers come from a supplier's or a stock-count list, bring them in with a lookup on the SKU.
- Delete every row whose stock you are not setting. This matters: see the first limit below.
- Save as CSV, in UTF-8.
- In the shop, select Import, choose the file, tick Update existing products, and select Continue. Check the Column mapping, then select Run the importer.
Its limits
- An empty Stock cell is not "no change". WooCommerce's documentation says of the Stock column: leave blank to disable stock management. A number switches stock management on for that product. So a row with an empty cell tells the shop to stop counting that product. Delete such rows from the file.
- Rows are matched by ID or SKU. With Update existing products ticked, a row whose ID matches nothing is skipped. A typing slip in an SKU means that product keeps its old stock. Compare the importer's closing count with your row count.
- The file is a moment in time. Stock moves while you work. If an order comes in between your export and your import, the import puts the older, higher number back, and you can sell what you no longer have. Work fast and at a quiet hour.
- The status has its own column. It is called In stock? and takes
1or0. A column named after the database field, with words such as "outofstock", is not what the importer's documentation describes. - No preview and no undo. Your untouched export is the way back.
Way 3: in a Google Sheet, with Stockrows
Stockrows is our own tool, a Google Sheet with a menu that reads your products from the shop and writes your changes back. There is no file, and nothing is installed on the shop.
- Copy the sheet. Open the sheet's link on the order page and choose "Make a copy". The first time you use its menu, Google shows a warning, because the script lives in your own copy. The setup guide says what to expect.
- Connect your shop. In your shop, create a pair of REST API keys with Read/Write permission (how to create them). In the sheet, open Stockrows → Settings, enter the shop's address and the two keys, and use the connection test.
- Pull. Choose Stockrows → Pull products from the shop. The Products sheet fills with one row for each simple product, each variable product and each variation. A large catalogue comes in steps: keep the progress window open. If it stops, choose the same menu item again and it continues where it stopped.
- Type the quantities. Stock quantity is column H. It is the number that WooCommerce's export calls Stock and its bulk edit calls Stock Qty. There is one row for each simple product and each variation, with its SKU in column E. Type whole numbers. Where the shop counts a product's stock on the product itself, shared by its variations, type the number on that product's own row: on the row of a variation that shares it, the preview refuses the quantity and says where to type it. If your counts are in another list, paste that list onto a second tab and bring the numbers in with a lookup on the SKU, then paste them as values. Rows that you leave alone are not sent.
- Preview. Choose Stockrows → Preview changes. A sheet lists every value that would change, with the value in the shop now and the value after the push, and every row that would not be sent, with the reason. If the shop did not count stock for a product so far, the preview says that pushing a quantity switches stock management on for it. Nothing is sent by a preview.
- Push. Choose Stockrows → Push changes to the shop and confirm the count. Only the rows you changed are sent. A row that was changed in the shop since your pull is skipped and reported, and not overwritten.
- If it was wrong. Every push keeps the old values on the Undo sheet. Stockrows → Put back the last push's old values writes them back into the sheet. Then preview and push again.
Where it differs from the file
- A sale since your pull is caught before sending. Before it sends a row, the tool reads that product from the shop again. If its stock is no longer what your pull saw, the row is skipped and reported, and the shop's number stands. Pull again, and set those few by hand. A sale in the moment between that check and the write is not caught: the sheet's number is written over it.
- An untouched cell is no change. Only cells that differ from the pull are sent. A quantity can't be emptied from the sheet, so stock management is never switched off by accident. It also can't be switched off on purpose: do that in the shop.
- It matches by the shop's ID, not by SKU. You can't feed it a supplier's file directly. The lookup on the SKU in the step above is the bridge, and a product without an SKU in the shop has to be found by its name.
- Stock status (column I) takes
instock,outofstockoronbackorder. While the shop counts stock for a product, the shop sets the status from the quantity itself, and the preview tells you that your status may not stick.
What to know before you choose this way
- Stockrows is a new, early version. It changes regular price, sale price, stock quantity, stock status and whether a product is published or a draft. It does nothing else: it creates and deletes no products, and name and SKU are shown but can't be changed.
- Your shop must be reachable over HTTPS. Some hosts' firewalls block calls that come from Google's servers, and on such a shop the tool will not work. The free trial shows you this at no cost.
- It is a paid tool: a 7-day free trial with no card, which starts the first time you push to a shop, then 9 USD a month or 59 USD a year for one shop. Or pay 39 USD once for this early version. After the trial, Pull stays free and Push needs a licence.
The steps for WooCommerce's own screens follow WooCommerce's pages as we read them on 25 November 2026: Bulk editing products, Variable products, Product CSV importer and exporter. Your shop's version may word a button differently.