Skip to main content
← All guides

7 min read

Convert a Google Shopping XML feed to Excel

By Quentin Delepierre, Salesforce Commerce Cloud consultant

Your Google Shopping feed is an XML file that's hard to edit by hand. Here's how to open it in Excel to fix titles, prices or descriptions in bulk, then rebuild it with its original structure to re-import into Google Merchant Center.

Got your own XML? Drop it in and see it as a table, free and with no account. For an Excel file you can edit and then rebuild into an XML that keeps its structure, a free account is all you need.

Transform a file

Simple Excel table, free with no account, for files up to 1 MB. File that rebuilds into XML: free account, 3 free credits, no credit card.

Download an example result (.xlsx)Example source XML

How do I bulk edit a Google Shopping XML feed in Excel?

Export the XML feed from Google Merchant Center (or take the file generated by your CMS or PIM), drop it on ExcelifyXML and choose the Excel file (.xlsx): each product is a row and each field a column. Fix titles, prices or descriptions in Excel, LibreOffice, Google Sheets or Numbers, then drop the saved file on the Rebuild page: you get back an XML with the exact structure of the feed, ready to re-import into Merchant Center. For prices, keep the currency in the cell ("159.00 USD"); for GTINs, prefer the .xlsx file, which keeps the codes as they are, over the CSV. The preview is free, the transformation costs 1 credit.

Why edit your XML feed in Excel?

A Google Shopping feed has one <item> tag per product, with dozens of fields (g:title, g:price, g:description, g:availability, g:gtin…). Editing that in a text editor is tedious and error-prone: one unclosed tag and the whole feed is rejected.

In a spreadsheet, each product becomes a row and each field a column. You can sort, filter, find-and-replace, recompute prices with a formula, or fix 5,000 titles in minutes — exactly what Excel is built for.

The steps

  1. Export your XML feed from Google Merchant Center (or grab the file generated by your CMS / PIM).
  2. Drop the file on ExcelifyXML: a free preview immediately shows the first rows, one per product (<item>). Confirm (1 credit), then choose the Excel file (.xlsx) — or the CSV, for a script or another tool.
  3. Open the Excel file in Excel, LibreOffice, Google Sheets or Numbers and make your edits (titles, prices, descriptions, availability…), then save it.
  4. On the Rebuild page, drop the saved Excel file, alone (or the edited data.csv with its skeleton.json): the XML is rebuilt with the exact feed structure.
  5. Re-import the XML into Google Merchant Center.

What the CSV looks like

Each <item> becomes a row, each field a column that keeps its Google name (g:id, g:title, g:price…). Grouped fields, such as shipping, get one column per sub-field: g:shipping.g:country, g:shipping.g:price. Repeated fields, such as g:additional_image_link, fit in one cell, one link per line (uncheck “Group repeated values” when uploading to number them: g:additional_image_link[0], g:additional_image_link[1]).

One product in the feed
<item>
  <g:id>TV_123456</g:id>
  <g:title>LG 22LB4510 - 22" LED TV - 1080p (FullHD)</g:title>
  <g:price>159.00 USD</g:price>
  <g:shipping>
    <g:country>US</g:country>
    <g:price>14.95 USD</g:price>
  </g:shipping>
  <g:gtin>71919219405200</g:gtin>
</item>
The same row in the CSV (extract)
g:id , g:title , g:price , g:shipping.g:country , g:shipping.g:price , g:gtin
TV_123456 , LG 22LB4510 - 22" LED TV - 1080p (FullHD) , 159.00 USD , US , 14.95 USD , 71919219405200

What does the rebuilt XML keep?

The rebuilt XML keeps the rss root, the channel header, the g: namespaces and the field order, so your feed stays readable by Merchant Center. Values containing HTML or special characters are written back as CDATA.

Empty self-closing tags (for example the one of a g:sale_price with no value) don't come back: an empty cell writes nothing. For Google, an empty tag and a missing field have the same effect.

How do I add, delete or fill in products and fields?

  • Add a product: add a row. Delete a product: delete its row.
  • Add a field that didn't exist, such as a sale price: add a column named g:sale_price. It becomes a tag at the end of each product; products whose cell is empty don't get one.
  • Recompute prices with a formula: then paste the result as values, and keep the currency in the cell ("139.00 USD"). Check the decimal separator before rebuilding if your Excel uses a comma.

What are the common Merchant Center feed errors?

  • Price without currency: g:price must hold the amount and the currency, for instance "159.00 USD".
  • Title too long: Google accepts 150 characters at most. A =LEN() column next to the titles spots them before upload.
  • Misspelled availability: keep exactly the values Google expects (in stock, out of stock, preorder, backorder).
  • GTINs changed by Excel: use the Excel file (.xlsx), which keeps them as text (details below).

How do I stop Excel from changing my GTINs?

The simplest: take the Excel file (.xlsx). Every value in it is written as text and every column is in Text format: a 13- or 14-digit GTIN stays as it is, and what you type stays text. Excel may show small green triangles on the cells you type: never click “Convert to Number”.

With the CSV, opened by double-click, Excel reads it as numbers: a 13-digit GTIN becomes "3.61235E+12" and its last digits are lost when the file is saved. Open the CSV with Data › From Text/CSV instead, then “Transform Data”, giving the g:gtin column the Text type.

From the preview, then on the result screen, ExcelifyXML points out the columns Excel is likely to change. And if a code still turned into scientific notation, the reconstruction stops and shows you the column and rows at stake, rather than producing a wrong feed.

Your data stays private

Your file is processed in memory on European Union servers, then deleted immediately. Above 4 MB, it goes through a private, encrypted transit space for the time of the preview and the transformation, then it's wiped (at the latest one hour after the upload). No metadata is kept. No install, no third-party tool, everything happens online.

Convert your Google Shopping feed in seconds:

Transform a file