sortyra.com/knowledge-base/feed-types-xml-csv-json

Feed types: XML, CSV, TSV, JSON, Google Sheets and API

Markdownllms.txtai-catalog.jsonSKILL.mdauth.md
# Feed types: XML, CSV, TSV, JSON, Google Sheets and API

> The difference between XML, CSV, TSV and JSON feeds, when to use Google Sheets and when an API. Format examples and what to watch out for with each one.

Source: <https://sortyra.com/knowledge-base/feed-types-xml-csv-json>

---

[Sortyra](https://sortyra.com/) [Knowledge base](https://sortyra.com/knowledge-base) [Feed basics](https://sortyra.com/knowledge-base#basics)

# Feed types: XML, CSV, TSV, JSON, Google Sheets and API

Sortyra team · January 26, 2026 · 9 min read

Search the knowledge base

[Knowledge base](https://sortyra.com/knowledge-base)

**Feed basics**

- [What is a product feed](https://sortyra.com/knowledge-base/what-is-a-product-feed)
- [Feed types: XML, CSV, TSV, JSON, Google Sheets and API](https://sortyra.com/knowledge-base/feed-types-xml-csv-json)
- [What a product feed is used for](https://sortyra.com/knowledge-base/what-product-feeds-are-used-for)
- [What is a feed manager and when do you need one?](https://sortyra.com/knowledge-base/what-is-a-feed-manager)
- [Supplier feeds, wholesale and dropshipping](https://sortyra.com/knowledge-base/supplier-feed-dropshipping)
- [Feeds for price comparison sites (Heureka, Zboží and others)](https://sortyra.com/knowledge-base/price-comparison-site-feed)
- [Google Merchant Center and Google Shopping feed](https://sortyra.com/knowledge-base/google-merchant-center-feed)
- [Catalogue for Facebook and Instagram](https://sortyra.com/knowledge-base/facebook-instagram-catalogue-feed)
- [Feeds for marketplaces](https://sortyra.com/knowledge-base/marketplace-product-feeds)
- [EAN, GTIN, MPN and product codes](https://sortyra.com/knowledge-base/ean-gtin-mpn-product-code)
- [Product categories and category trees](https://sortyra.com/knowledge-base/product-categories-category-tree)
- [Product attributes and variants](https://sortyra.com/knowledge-base/product-attributes-and-variants)
- [Product matching on comparison sites](https://sortyra.com/knowledge-base/product-matching-comparison-sites)
- [Availability, stock and delivery time](https://sortyra.com/knowledge-base/availability-stock-delivery-time)
- [Price, VAT and currency in a feed](https://sortyra.com/knowledge-base/price-vat-currency-in-feed)
- [Images in feeds](https://sortyra.com/knowledge-base/images-in-product-feeds)
- [How often to update a feed](https://sortyra.com/knowledge-base/how-often-to-update-a-feed)
- [The most common feed errors and how to fix them](https://sortyra.com/knowledge-base/common-feed-errors-how-to-fix)

**Getting started**

- [Getting started with Sortyra – an overview](https://sortyra.com/knowledge-base/getting-started-with-sortyra)
- [Adding your first feed](https://sortyra.com/knowledge-base/adding-your-first-feed)
- [Your first output for a channel](https://sortyra.com/knowledge-base/first-output-for-a-channel)
- [Dashboard](https://sortyra.com/knowledge-base/feed-and-alerts-dashboard)
- [Team, roles and access](https://sortyra.com/knowledge-base/team-roles-and-access)
- [Subscription, payments and free trial](https://sortyra.com/knowledge-base/subscription-payments-free-trial)
- [Billing details](https://sortyra.com/knowledge-base/company-billing-details)
- [Booking a 15-minute call and what to prepare](https://sortyra.com/knowledge-base/book-a-15-minute-call)

**Catalogue**

- [Sources](https://sortyra.com/knowledge-base/sources-input-feeds)
- [Source settings: field mapping, item ID, download schedule, login](https://sortyra.com/knowledge-base/feed-source-settings)
- [Products: search and filters](https://sortyra.com/knowledge-base/products-search-and-filters)
- [Manual edits and locked fields](https://sortyra.com/knowledge-base/manual-edits-locked-fields)
- [Fields and values](https://sortyra.com/knowledge-base/feed-fields-and-values)
- [Categories in Sortyra: your own tree, assignment and channel mapping](https://sortyra.com/knowledge-base/product-categories-in-sortyra)
- [Thematic and seasonal categories: Christmas, gifts, Black Friday](https://sortyra.com/knowledge-base/thematic-seasonal-categories)
- [Renaming a category without losing SEO: 301 redirects for each platform](https://sortyra.com/knowledge-base/rename-category-301-redirects)
- [SortyMigration: moving your shop step by step](https://sortyra.com/knowledge-base/migrating-from-another-platform)
- [Duplicates and the same product from several suppliers](https://sortyra.com/knowledge-base/duplicate-products-multiple-suppliers)

**Processing**

- [Rules: how they work](https://sortyra.com/knowledge-base/feed-rules-bulk-editing)
- [Rule recipes – examples](https://sortyra.com/knowledge-base/feed-rule-recipes-examples)
- [AI Copilot: set up and edit your feed in a conversation](https://sortyra.com/knowledge-base/ai-copilot-plain-language-feed-edits)
- [AI Copilot prompt examples](https://sortyra.com/knowledge-base/ai-copilot-prompt-examples)
- [AI content: titles, descriptions, attributes](https://sortyra.com/knowledge-base/ai-content-descriptions-titles-attributes)
- [Prompt examples for AI content](https://sortyra.com/knowledge-base/ai-content-prompt-examples)
- [Translations, glossary and translation memory](https://sortyra.com/knowledge-base/translate-product-feed-glossary-memory)
- [Image studio](https://sortyra.com/knowledge-base/image-studio-feed-product-photos)
- [Feed visuals (image editor)](https://sortyra.com/knowledge-base/feed-visuals-image-editor)
- [Output check and data quality](https://sortyra.com/knowledge-base/check-feed-before-publishing)

**Outputs and channels**

- [Outputs and feed links](https://sortyra.com/knowledge-base/outputs-and-feed-links)
- [Channel formats and custom specifications](https://sortyra.com/knowledge-base/channel-formats-custom-specification)
- [Sharing feeds with partners](https://sortyra.com/knowledge-base/sharing-feeds-with-partners)
- [Connecting your shop via API](https://sortyra.com/knowledge-base/connect-online-shop-via-api)
- [Marketplaces: connection, offers, orders](https://sortyra.com/knowledge-base/marketplaces-connection-offers-orders)
- [Marketplace pricing: exchange rate, commission, VAT and minimum margin](https://sortyra.com/knowledge-base/marketplace-pricing)
- [Heureka Marketplace: connection, shipping and orders](https://sortyra.com/knowledge-base/heureka-marketplace-connection-orders)

**Prices and sales**

- [Prices and competition](https://sortyra.com/knowledge-base/competitor-based-pricing)
- [Price position](https://sortyra.com/knowledge-base/price-position-on-comparison-sites)
- [Connecting Google Merchant Center: market prices and product performance](https://sortyra.com/knowledge-base/connect-google-merchant-center)
- [Bidding on comparison sites](https://sortyra.com/knowledge-base/cpc-bidding-heureka-zbozi)
- [Product matching with comparison sites in Sortyra](https://sortyra.com/knowledge-base/comparison-site-matching-in-sortyra)
- [Stock and delivery](https://sortyra.com/knowledge-base/stock-and-delivery-times)
- [Own warehouse: marking a source, several warehouses and "in stock"-only feeds](https://sortyra.com/knowledge-base/own-warehouse-stock-feed)
- [Exporting stock from a warehouse program to a feed](https://sortyra.com/knowledge-base/stock-export-warehouse-software)
- [POHODA: exporting stock to your shop, Heureka and Google](https://sortyra.com/knowledge-base/pohoda-stock-export-feed)
- [Money S3: exporting stock to a feed for your shop and comparison sites](https://sortyra.com/knowledge-base/money-s3-stock-export-feed)
- [ABRA Flexi: stock and price-list prices straight into your feed](https://sortyra.com/knowledge-base/abra-flexi-stock-feed)
- [KROS Omega: stock card list into your feed](https://sortyra.com/knowledge-base/kros-omega-stock-feed)
- [Price quotes for customers](https://sortyra.com/knowledge-base/price-quotes-for-business-customers)
- [External and web data](https://sortyra.com/knowledge-base/external-data-and-web-data)

**Insights and checks**

- [Insights and alerts](https://sortyra.com/knowledge-base/feed-insights-and-alerts)
- [Freshness guard and feed update history](https://sortyra.com/knowledge-base/feed-freshness-guard)
- [Safeguards: prices and blocked terms](https://sortyra.com/knowledge-base/feed-safeguards-prices-blocked-terms)
- [Change history and undo](https://sortyra.com/knowledge-base/change-history-and-undo)
- [System status](https://sortyra.com/knowledge-base/system-status-feed-runs)

**Integrations and API**

- [AI and integrations: your own key or Managed AI](https://sortyra.com/knowledge-base/ai-integrations-own-api-key)
- [Alerts by email, Slack, Telegram and webhook](https://sortyra.com/knowledge-base/feed-alerts-email-slack-telegram-webhook)
- [REST API](https://sortyra.com/knowledge-base/rest-api-product-feeds)
- [Working through an AI agent – MCP](https://sortyra.com/knowledge-base/mcp-ai-agent-product-feeds)
- [Agencies and client management](https://sortyra.com/knowledge-base/agencies-client-feed-management)
- [Partner programme: sign-up, commissions and invoices](https://sortyra.com/knowledge-base/partner-programme-commissions)
- [Data and privacy: export, deletion and improving the service](https://sortyra.com/knowledge-base/data-privacy-export-deletion)

**Troubleshooting**

- [The feed is not downloading](https://sortyra.com/knowledge-base/feed-not-downloading-source-error)
- [The supplier stopped updating the feed – how to spot it before your customers do](https://sortyra.com/knowledge-base/supplier-stopped-updating-feed)
- [Products missing from the output](https://sortyra.com/knowledge-base/products-missing-from-feed-output)
- [A comparison site or Google rejects your feed](https://sortyra.com/knowledge-base/comparison-site-or-google-rejects-feed)
- [AI not working or limit reached](https://sortyra.com/knowledge-base/ai-not-working-limit-reached)
- [Frequently asked questions](https://sortyra.com/knowledge-base/sortyra-faq)

A product feed can take several forms. The most common is XML, which writes data inside tags, and CSV or TSV, which are plain tables. JSON is used mainly by modern systems and APIs. The content is the same in all of them – a list of products with their data – only the way it is written differs.

**In this article**

1. One content, different wrappers
2. XML – the most widespread feed format
3. CSV – a plain table
4. TSV – a tab-separated table
5. JSON – the format of modern systems
6. Excel (XLSX)
7. Google Sheets – a spreadsheet in the cloud
8. API – data on request, not a file
9. Format comparison
10. Character encoding: why accented letters get garbled
11. How Sortyra helps with formats
12. Frequently asked questions

## One content, different wrappers

A product feed is a list of products with their data (if you are not sure what a feed is, start with the article [What is a product feed](https://sortyra.com/knowledge-base/what-is-a-product-feed)). The same list can be written down in different ways – just as the same recipe can be in a cookbook, on a scrap of paper or in a spreadsheet on your computer. The recipe stays the same; only the way it is written changes.

This way of writing is called the **feed format**. The format is chosen by whoever reads the feed: a comparison site, an advertising system or an online shop states in its specification exactly which format and which field names it accepts. You adapt to that.

In the following sections we show the same product – a sleeping bag – in each common format.

## XML – the most widespread feed format

**XML** (eXtensible Markup Language) puts each piece of data between two tags: an opening `<NAME>` and a closing `</NAME>`. Tags can be nested inside one another, so XML also copes well with more complex things – several images, attributes, variants or delivery options.

`<SHOPITEM> <ITEM_ID>SPAC-118</ITEM_ID> <PRODUCTNAME>Horalka Mumia 800 sleeping bag, down to -5 °C</PRODUCTNAME> <PRICE_VAT>89.00</PRICE_VAT> <EAN>8580004987658</EAN> <PARAM> <PARAM_NAME>Colour</PARAM_NAME> <VAL>blue</VAL> </PARAM> </SHOPITEM>`

**Where you will come across it:** feeds for Heureka, Zboží and most price comparison sites, Google Merchant Center (in the RSS variant with `g:` tags), exports from e-commerce platforms and wholesalers' feeds.

**Advantages:** it handles nested data (for example, several attributes for one product), has a clear structure and can be validated to check it is written correctly.

**What to watch out for:**

- Every opened tag must be closed. A single mistake can break the whole file.
- The characters `&` and `<` in text must be escaped (for example as `&amp;`) or placed inside a `<![CDATA[ … ]]>` block, which says "this is plain text".
- Case matters: `<EAN>` and `<ean>` are two different tags to a computer.

## CSV – a plain table

**CSV** (Comma-Separated Values) is a table saved as text. The first row contains the column names, each following row is one product, and the values are separated by a delimiter – a comma, a semicolon or another character.

`id;name;price;ean;colour SPAC-118;"Horalka Mumia 800 sleeping bag, down to -5 °C";89.00;8580004987658;blue`

**Where you will come across it:** wholesalers' feeds, imports into online shops, price lists, exports from accounting and stock management systems. You can open a CSV in Excel or any other spreadsheet program.

**Advantages:** it is simple, easy to read and easy to edit in a spreadsheet.

**What to watch out for:**

- **The delimiter.** In many European countries the semicolon is common, in English-speaking ones the comma. If a program uses the wrong delimiter, everything ends up in a single column.
- **Quotation marks.** If a value contains the delimiter (for example, a comma in the title), it must be in quotation marks – like the sleeping bag's title in the example.
- **Decimal comma and decimal point.** A price of `89,00` and `89.00` doesn't mean the same thing to every system.
- **Excel changes data.** When you open the file in Excel, a 13-digit EAN can turn into `8.58E+12` or leading zeros can disappear. If you then save the file in Excel, the damaged values are saved permanently.
- **Several values in one cell** (for example, several images) must be separated by another character that both sides have agreed on.

## TSV – a tab-separated table

**TSV** (Tab-Separated Values) is the same as CSV, except that the values are separated by a **tab** (an invisible character you insert with the Tab key). Because tabs almost never appear in titles and descriptions, most of the problems with quotation marks disappear.

Google Merchant Center and the catalogue for Facebook and Instagram both accept tab-separated text files. The file can have the extension `.tsv` or `.txt`.

**Tip:** In a text editor, a TSV file looks like columns separated by large gaps. If you replace those gaps with ordinary spaces, you break the file – a tab must stay a tab.

## JSON – the format of modern systems

**JSON** (JavaScript Object Notation) writes data as "name: value" pairs inside curly brackets. It is shorter than XML and is used mainly by modern applications and APIs.

`{ "id": "SPAC-118", "name": "Horalka Mumia 800 sleeping bag, down to -5 °C", "price": 89.00, "ean": "8580004987658", "attributes": { "colour": "blue" } }`

One variant is **JSON Lines** – each line of the file is a separate product in JSON. Such a file is easy to process in chunks, which is why it is used for large catalogues.

E-commerce platforms return JSON too. For example, the product list of a Shopify store has variants nested inside each product – every size or colour has its own code, price, stock and EAN.

**What to watch out for:** a missing or extra comma breaks the whole file. EANs and codes belong in quotation marks as text, otherwise they can lose their leading zeros.

## Excel (XLSX)

Some suppliers send their range as an Excel file. It is convenient for people but less so for automatic processing: it can have several sheets, merged cells or formulas. For a regular feed, it is better to ask the supplier for a CSV or XML file at a permanent URL.

## Google Sheets – a spreadsheet in the cloud

**Google Sheets** is an online spreadsheet. It is handy when you only have a few dozen products or when several people fill in the data at the same time. Google Merchant Center can read the spreadsheet directly; other systems usually read it as a CSV – you publish the sheet via **File → Share → Publish to web** in CSV format and get a URL from which it can be downloaded.

**What to watch out for:** anyone with edit access can accidentally overwrite a column or delete a row, and the mistake is passed on immediately. With a larger product range, a spreadsheet is prone to typos.

## API – data on request, not a file

An **API** (application programming interface) is not a file but a "hatch" through which one system requests data from another. Instead of downloading the whole feed, a program asks, for example, "give me the products changed in the last hour" and gets an answer – usually in JSON.

APIs are used mainly by marketplaces, large advertising platforms and business systems. The advantage is speed and the ability to send only the changes; the disadvantage is that connecting usually requires programming or a ready-made tool.

## Format comparison

| Format | What it looks like | Where it is used most | Main risk |
| --- | --- | --- | --- |
| XML | tags in angle brackets | comparison sites, Google, online shops | an unclosed tag, the `&` character |
| CSV | a table, delimiter `,` or `;` | wholesalers, shop imports | wrong delimiter, Excel ruins the EAN |
| TSV | a table, tab as delimiter | Google, Facebook and Instagram | a tab overwritten |
| JSON | name: value pairs | modern systems, APIs | a missing comma |
| XLSX | an Excel file | smaller suppliers | sheets, formulas, merged cells |
| Google Sheets | an online spreadsheet | small catalogues, manual management | data overwritten by mistake |
| API | a response to a request | marketplaces, business systems | requires an integration |

## Character encoding: why accented letters get garbled

Besides its format, every text feed also has an **encoding** – an agreement on how letters are stored in a computer. Today the standard is **UTF-8**, which handles every language. Older systems in the Czech Republic and Slovakia also use **windows-1250**. If you read a file in one encoding as if it were another, "café" turns into something like "cafĂ©". In XML the encoding is stated in the first line (`encoding="UTF-8"`); for a CSV you have to know it or guess it.

## How Sortyra helps with formats

Sortyra reads sources in XML, CSV, JSON (including JSON Lines), Excel (XLSX) and Google Sheets (a link to the shared sheet is enough – Sortyra does the CSV export itself) – from a permanent address (https://, ftp://, ftps:// or sftp://), also packed in ZIP or .gz and also with a username and password or a key in the header. It detects the format and encoding by itself and works out the meaning of every field by both name and content, so it doesn't matter that every supplier calls them something different – you confirm uncertain fields, prices, VAT, stock and links. It also recognises the product list of a Shopify or WooCommerce store in JSON and imports variants nested inside a product as separate products linked into one group. It then writes the outputs in the format the channel requires, or in your own custom XML or CSV. Sortyra reads what a single address returns: it doesn't read sources that can only be connected through other systems' APIs or that split the product list across several pages – in that case, use a complete export in one of the formats above. We explain why a tool is worth it in the article [What is a feed manager](https://sortyra.com/knowledge-base/what-is-a-feed-manager).

## Frequently asked questions

### What is the difference between an XML and a CSV feed?

XML writes each piece of data into named tags and can handle nested data, such as several attributes per product. CSV is a simple table where a row is a product and a column is a piece of data – it is easier to read but copes less well with complex structures.

### Which feed format is best?

The one required by the channel you are sending the feed to. For price comparison sites it is almost always XML; for Google and Facebook, XML or a tab-separated file.

### Can I convert a CSV feed to XML?

Yes – the content is the same, only the way it is written changes. When converting, however, you need to map the columns correctly to the tags the target channel expects, and take care of the encoding and special characters.

### Why did my EAN get ruined when I opened the CSV in Excel?

Excel treats long numbers as numeric values and shows them in scientific notation or removes leading zeros. When importing a CSV, set the EAN column as text, or open the file in a text editor.

### Is an API better than a feed?

An API is faster and can send only the changes, but it requires an integration. For most online shops and comparison sites, a feed at a permanent URL is simpler and entirely sufficient.

### Which encoding should a feed use?

UTF-8 is recommended: almost all channels accept it and it displays accented characters correctly in every language. The encoding should be stated in the header of the XML file.

[← Previous article **What is a product feed**](https://sortyra.com/knowledge-base/what-is-a-product-feed) [Next article → **What a product feed is used for**](https://sortyra.com/knowledge-base/what-product-feeds-are-used-for)

## More articles: Feed basics

- [What is a product feed](https://sortyra.com/knowledge-base/what-is-a-product-feed)
- [What a product feed is used for](https://sortyra.com/knowledge-base/what-product-feeds-are-used-for)
- [What is a feed manager and when do you need one?](https://sortyra.com/knowledge-base/what-is-a-feed-manager)
- [Supplier feeds, wholesale and dropshipping](https://sortyra.com/knowledge-base/supplier-feed-dropshipping)
- [Feeds for price comparison sites (Heureka, Zboží and others)](https://sortyra.com/knowledge-base/price-comparison-site-feed)
- [Google Merchant Center and Google Shopping feed](https://sortyra.com/knowledge-base/google-merchant-center-feed)
- [Catalogue for Facebook and Instagram](https://sortyra.com/knowledge-base/facebook-instagram-catalogue-feed)
- [Feeds for marketplaces](https://sortyra.com/knowledge-base/marketplace-product-feeds)
- [EAN, GTIN, MPN and product codes](https://sortyra.com/knowledge-base/ean-gtin-mpn-product-code)
- [Product categories and category trees](https://sortyra.com/knowledge-base/product-categories-category-tree)
- [Product attributes and variants](https://sortyra.com/knowledge-base/product-attributes-and-variants)
- [Product matching on comparison sites](https://sortyra.com/knowledge-base/product-matching-comparison-sites)
- [Availability, stock and delivery time](https://sortyra.com/knowledge-base/availability-stock-delivery-time)
- [Price, VAT and currency in a feed](https://sortyra.com/knowledge-base/price-vat-currency-in-feed)
- [Images in feeds](https://sortyra.com/knowledge-base/images-in-product-feeds)
- [How often to update a feed](https://sortyra.com/knowledge-base/how-often-to-update-a-feed)
- [The most common feed errors and how to fix them](https://sortyra.com/knowledge-base/common-feed-errors-how-to-fix)

## Try it on your own feed

[Try it free](https://app.sortyra.com/registracia?lang=en) [Book a 15-min call](https://sortyra.com/contact)