{"id":21582,"date":"2019-04-25T17:17:51","date_gmt":"2019-04-25T15:17:51","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=21582"},"modified":"2025-04-25T22:34:04","modified_gmt":"2025-04-25T20:34:04","slug":"what-is-sku-number-in-magento-and-how-to-generate-it","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html","title":{"rendered":"What is SKU in Magento and How to Generate it?"},"content":{"rendered":"\n<p>In order to properly work with Magento online store, both developer and store admin should have extensive knowledge about SKU, what role does it play for Magento inventory management and how to configure it for the purposes of your online store. The following article is dedicated to all these aspects and explores the following aspects.<\/p>\n<p><!--more--><\/p>\n<p><strong>Table of contents:<\/strong><\/p>\n<p><a href=\"#step_1\">What is SKU in Magento<br>\n<\/a><a href=\"#step_2\">Product ID vs SKU vs UPC in Magento<br>\n<\/a><a href=\"#step_3\">What does SKU consist of<br>\n<\/a><a href=\"#step_4\">How to change SKU in admin panel and in the database<br>\n<\/a><a href=\"#step_5\">Where is SKU placed apart from product pages<br>\n<\/a><a href=\"#step_6\">How to change the position of SKU<\/a><\/p>\n<h2 id=\"step_1\">What is SKU in Magento<\/h2>\n<p>SKU stands for a Stock Keeping unit, and it is a unique identification code in alphanumeric format. It is assigned to every product in an online Magento store for inventory purposes and can identify a product according to its manufacturer, color or size options, price, etc. as well as its availability in stock. SKU is also used to create orders, shipping, and working with inventory. SKU can be used in several systems simultaneously: for instance, if the store is multilanguage, the name of the products in each language will be different, but the SKU will remain the same.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/what-is-SKU.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21583\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/what-is-SKU.png\" alt=\"what is SKU\" width=\"1389\" height=\"675\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-in-admin.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21597\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-in-admin.png\" alt=\"sku in admin\" width=\"1111\" height=\"313\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<h2 id=\"step_2\">Product ID vs SKU vs UPC in Magento<\/h2>\n<p>Since SKU is not the only product identifier in ecommerce, confusion and misunderstanding may arise, especially when you are a novice online retailer. Therefore, I shall make clear the difference between the most common product identifiers &ndash; SKU, UPC and Product ID.<\/p>\n<p>The product ID is a number in a numerical format, automatically assigned to the product at its creation. It serves as an internal identifier and is not visible to the customer. A product ID can not be manually changed and when the corresponding product is deleted, this ID will never be assigned to another product.<\/p>\n<p>UPC stands for Universal Product Code and is commonly called barcode. UPC is a global system of 12 (in some cases 13) digits, created more than 40 years ago for trade tracking purposes. UPC is assigned to each trade item individually by a special organization GS1 and is aimed for external use &ndash; scanned at the points of sale, it allows to track an item at various points of its retail journey. UPC contains information that identifies product origin, manufacturer, price and so on.<\/p>\n<p>SKUs, in their turn, are utilized solely for internal purposes of a store and are unique for each company. Also, SKU contains both numbers and letters, and for convenience sake, it is based on the product name and certain attributes (for instance, SKU for black Nike women running shoes in size 8 can be NIKE-WMN-BLK-8). The main purpose of this system is keeping track of one store&rsquo;s inventory.<\/p>\n<h2 id=\"step_3\">What does SKU consist of<\/h2>\n<p>SKUs consists of a set of numbers, letters, dashes and underscores. As a rule, SKUs consist of abbreviations of the product name and its most distinguishing features. For example, the SKU for the product &ldquo;Mountain bike&rdquo; green with wheels of 27 inches could be the following: BIC-MT-27-GRN.<\/p>\n<p>Dashes and underscores are usually used for semantic separation of such abbreviations, like you could have already understood from the example above. Without the separators, SKU will be complicated to comprehend (for instance, it would have been BICMT27GRN, not BIC-MT-27-GRN).<\/p>\n<p>When creating SKU number, avoid using spaces and special characters (such as &ldquo;*&rdquo;, &ldquo;&gt;&rdquo;, &ldquo;&amp;&rdquo; and others). It is also not recommended to use only numbers, as they are not as descriptive as words; that is more, such number can get easily confused with product UPC.<\/p>\n<p>In Magento 2, the maximum length of SKU is 64 characters. If you try to enter SKU longer than 64 characters in the Admin panel, you will get the message<br>\n&ldquo;Please enter less or equal than 64 symbols.&rdquo;<\/p>\n<p>If you are having troubles with creating numerous SKU numbers yourself, you can always use a SKU number generator. There is a great variety of online SKU generators available on the web, and they all share pretty similar logic &ndash; you need to input product name and its main attributes, and the tool will output a unique SKU.<\/p>\n<h2 id=\"step_4\">How to change SKU in admin panel and in the database<\/h2>\n<p>To change SKU in the admin panel, log into your back office and navigate to the product you want to change SKU for. Each edit menu page has a SKU field that you can edit and press <strong>Save<\/strong> to keep the changes.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-magento.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21584\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-magento.png\" alt=\"sku magento\" width=\"512\" height=\"250\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<p>There is another method of changing product SKU is in the database. For this, find the tables <strong>catalog_product_entity, sales_order_item, sales_quote_item<\/strong> and change product SKUs there. Make sure that the SKUs for a particular product does not differ in all these tables.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/what-is-sku-table.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21672\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/what-is-sku-table.png\" alt=\"what is sku Magento\" width=\"1098\" height=\"494\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<h2 id=\"step_5\">Where is SKU placed apart from product pages<\/h2>\n<p>By default, Magento 2 SKU is positioned on the product page, on the product comparison page, in order history, in invoices and in delivery pages.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-example.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21586\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-example.png\" alt=\"sku example\" width=\"1293\" height=\"608\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<p>When you compare two products in Magento store, their SKUs are also placed into the comparison table.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/product-comparison-sku.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21587\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/product-comparison-sku.png\" alt=\"product comparison sku\" width=\"512\" height=\"306\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><br>\n&lt;<\/p>\n<h2 id=\"step_6\">How to change SKU position<\/h2>\n<p>At times a necessity arises to change the location of SKU on the product page. This can be done programmatically.<\/p>\n<p>First of all, you should find out which file is responsible for displaying the SKU on the product page. The following layout file for the &ldquo;<strong>catalog_product_view.xml<\/strong>&rdquo; of the Catalog module is responsible for this:<\/p>\n<pre class=\"lang:default decode:true \">&lt;Magento_Catalog_module_dir&gt;\/view\/frontend\/layout\/catalog_product_view.xml<\/pre>\n<p>Bear in mind that in order to change this file you need to copy it to the folder with your theme. It is not advised to change the original module files; instead, always copy them into your theme. Otherwise, if you update the module, your changes may be deleted:<\/p>\n<pre class=\"lang:default decode:true \">&lt;theme_dir&gt;\/Magento_Catalog\/layout\/catalog_product_view.xml\r\n<\/pre>\n<p>In this file we can find a block with the name &ldquo;product.info.sku&rdquo;. This block also adds SKU to the product page. It looks the following way:<\/p>\n<pre class=\"lang:default decode:true \">&lt;block class=\"Magento\\Catalog\\Block\\Product\\View\\Description\" name=\"product.info.sku\" template=\"Magento_Catalog::product\/view\/attribute.phtml\" after=\"product.info.type\"&gt;\r\n&lt;arguments&gt;\r\n&lt;argument name=\"at_call\" xsi:type=\"string\"&gt;getSku&lt;\/argument&gt;\r\n&lt;argument name=\"at_code\" xsi:type=\"string\"&gt;sku&lt;\/argument&gt;\r\n&lt;argument name=\"css_class\" xsi:type=\"string\"&gt;sku&lt;\/argument&gt;\r\n&lt;argument name=\"at_label\" xsi:type=\"string\"&gt;default&lt;\/argument&gt;\r\n&lt;argument name=\"add_attribute\" xsi:type=\"string\"&gt;itemprop=\"sku\"&lt;\/argument&gt;\r\n&lt;\/arguments&gt;\r\n&lt;\/block&gt;\r\n<\/pre>\n<p>In order to move any block or container to another place on the page, you need to add the following code to the layout file of your theme:<\/p>\n<pre class=\"lang:default decode:true \">&lt;move element=\"&lt;element_name&gt;\" destination=\"&lt;destination_name&gt;\" \/&gt;\r\n<\/pre>\n<p>where<\/p>\n<p><em>&lt;element_name&gt;<\/em> &ndash; the name of the element that we want to move (the element can be both a block and a container);<br>\n<em>&lt;destination_name&gt;<\/em> &ndash; the name of the element that we want to move our element into.<\/p>\n<p>For example, in order to move the SKU before the product name, you need to use the following code in the layout <strong>catalog_product_view.xml<\/strong> file of your theme:<\/p>\n<pre class=\"lang:default decode:true \">&lt;move element=\"product.info.sku\" destination=\"product.info.main\" before=\"-\" \/&gt;<\/pre>\n<p>where<\/p>\n<p><em>before<\/em> &ndash; is an argument that indicates before which element at the destination to insert a portable block (in this case, &ldquo;-&rdquo; means that the block will be added before all the elements at the destination). Instead of &ldquo;before&rdquo; you can use &ldquo;after&rdquo;, which indicates after which element at the destination to insert the portable block.<\/p>\n<p>As a result, SKU will be displayed before the product name.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-change-position.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21588\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-change-position.png\" alt=\"sku change position\" width=\"1298\" height=\"684\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<h2 id=\"step_7\">How to remove SKU from the product page<\/h2>\n<p>In order to remove the SKU from the product page, add the following code in the layout catalog_product_view.xml file of your theme, mentioned above:<\/p>\n<pre class=\"lang:default decode:true \">&lt;referenceBlock name=\"product.info.sku\" remove=\"true\"\/&gt;<\/pre>\n<p>where<\/p>\n<p><em>name<\/em> &ndash; the name of the block that we delete.<\/p>\n<p>As a result, SKU will be deleted from the product page.<\/p>\n<div class=\"content_sales_info\" style=\"background-image: url(https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/03\/Sales_background.png\"><img width=\"65\" height=\"65\" src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Vlad-Yunusov-middle.png\" alt=\"Vlad Yunusov\" title=\"What is SKU in Magento and How to Generate it?\"><div class=\"content_part\"><h3 class=\"title\">Partner With Us <\/h3><span class=\"sales_content_text\">Let's discuss how to grow your business. Get a Free Quote.<\/span><\/div> <a class=\"call-to-action\" href=\"https:\/\/belvg.com\/contact?utm_source=blog&amp;utm_campaign=sales_block&amp;utm_content=middle\" target=\"_blank\" rel=\"noopener\">Talk to Vlad<\/a><\/div>\n<h2>SKU FAQs<\/h2>\n<h3>How can I get SKU on the product page via layout?<\/h3>\n<p>You can add SKU to the product page using the following block in the layout file <strong>catalog_product_view.xml<\/strong>:<\/p>\n<pre class=\"lang:default decode:true \">&lt;block class=\"Magento\\Catalog\\Block\\Product\\View\\Description\" name=\"product.info.sku\" template=\"Magento_Catalog::product\/view\/attribute.phtml\" after=\"product.info.type\"&gt;\r\n&lt;arguments&gt;\r\n&lt;argument name=\"at_call\" xsi:type=\"string\"&gt;getSku&lt;\/argument&gt;\r\n&lt;argument name=\"at_code\" xsi:type=\"string\"&gt;sku&lt;\/argument&gt;\r\n&lt;argument name=\"css_class\" xsi:type=\"string\"&gt;sku&lt;\/argument&gt;\r\n&lt;argument name=\"at_label\" xsi:type=\"string\"&gt;default&lt;\/argument&gt;\r\n&lt;argument name=\"add_attribute\" xsi:type=\"string\"&gt;itemprop=\"sku\"&lt;\/argument&gt;\r\n&lt;\/arguments&gt;\r\n&lt;\/block&gt;\r\n<\/pre>\n<h3>How to autogenerate SKU?<\/h3>\n<p>In order to auto-generate SKU, log in to the admin panel and navigate to<\/p>\n<p><strong>STORES<\/strong> -&gt; <strong>Settings<\/strong> -&gt; <strong>Configuration<\/strong><\/p>\n<p>Follow this path<\/p>\n<p><strong>CATALOG<\/strong> -&gt; <strong>Catalog<\/strong> -&gt; <strong>Product Fields Auto-Generation<\/strong><\/p>\n<p>To the &ldquo;<strong>Mask for SKU<\/strong>&rdquo; field that specifies the template according to which SKU will be formed:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/Mask-for-SKU.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21589\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/Mask-for-SKU.png\" alt=\"Mask for SKU\" width=\"1398\" height=\"656\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<h3>Magento -&gt;getSku() or getData(&lsquo;sku&rsquo;) returns empty string<\/h3>\n<p>In order to add SKU to the category page for each product in the list, you must edit the following product list template file:<\/p>\n<pre class=\"lang:default decode:true\">&lt;Magento_Catalog_module_dir&gt;\/view\/frontend\/templates\/product\/list.phtml<\/pre>\n<p>Copy this file to your theme folder.:<\/p>\n<pre class=\"lang:default decode:true\">&lt;theme_dir&gt;\/Magento_Catalog\/templates\/product\/list.phtml<\/pre>\n<p>Use the following code to add SKU:<\/p>\n<pre class=\"lang:default decode:true\">&lt;?= $_helper-&gt;productAttribute($_product, $_product-&gt;getSku(), 'sku') ?&gt;<\/pre>\n<p>For example, you can add SKU after the product name in the list (in this file after the block with the class &ldquo;product name product-item-name&rdquo;):<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-in-catalog-magento.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-21590\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/sku-in-catalog-magento.png\" alt=\"sku in catalog magento\" width=\"512\" height=\"240\" title=\"What is SKU in Magento and How to Generate it?\"><\/a><\/p>\n<h2>Wrapping it up<\/h2>\n<p>This article provided a complete overview of what is SKU in Magento, what it consists of, how to work with it and configure it. If you have any questions or comments, you are welcome to leave them down below.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/store.belvg.com\/\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2016\/04\/Extensions_for_Magento_2.png\" width=\"120\" height=\"120\" alt=\"Extensions for Magento 2\" class=\"module_image\" title=\"What is SKU in Magento and How to Generate it?\"><div class=\"module_content_part\"><h3 class=\"title\">Magento Extensions by BelVG<\/h3><p class=\"module_content_text\">Take your online store to the next level <\/p><a href=\"https:\/\/store.belvg.com\/\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Download here<\/span><\/a><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"In order to properly work with Magento online store, both developer and store admin should &#8230;","protected":false},"author":82,"featured_media":29171,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,491,389,473,525],"tags":[],"class_list":["post-21582","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento","category-magento-2","category-magento2-development","category-magento-front-end-developer","category-magento-seo","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn the difference between product ID, SKU &amp; UPC in Magento. Find out what SKU consists of and how to change SKU in admin panel and in the database\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andrey Litvin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#article\",\"name\":\"How To Generate and Change SKU in Magento | BelVG Blog\",\"headline\":\"What is SKU in Magento and How to Generate it?\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/What-is-SKU-in-Magento-and-How-to-Generate-it.webp\",\"width\":1108,\"height\":590},\"datePublished\":\"2019-04-25T17:17:51+02:00\",\"dateModified\":\"2025-04-25T22:34:04+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#webpage\"},\"articleSection\":\"Magento, Magento 2, Magento 2 Development, Magento Front End Developer, Magento SEO, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"position\":2,\"name\":\"Magento\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#listItem\",\"name\":\"What is SKU in Magento and How to Generate it?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#listItem\",\"position\":3,\"name\":\"What is SKU in Magento and How to Generate it?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin\",\"name\":\"Andrey Litvin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andrey Litvin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html\",\"name\":\"How To Generate and Change SKU in Magento | BelVG Blog\",\"description\":\"Learn the difference between product ID, SKU & UPC in Magento. Find out what SKU consists of and how to change SKU in admin panel and in the database\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrey-litvin#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/What-is-SKU-in-Magento-and-How-to-Generate-it.webp\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html\\\/#mainImage\",\"width\":1108,\"height\":590},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/what-is-sku-number-in-magento-and-how-to-generate-it.html#mainImage\"},\"datePublished\":\"2019-04-25T17:17:51+02:00\",\"dateModified\":\"2025-04-25T22:34:04+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How To Generate and Change SKU in Magento | BelVG Blog","description":"Learn the difference between product ID, SKU & UPC in Magento. Find out what SKU consists of and how to change SKU in admin panel and in the database","canonical_url":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#article","name":"How To Generate and Change SKU in Magento | BelVG Blog","headline":"What is SKU in Magento and How to Generate it?","author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/What-is-SKU-in-Magento-and-How-to-Generate-it.webp","width":1108,"height":590},"datePublished":"2019-04-25T17:17:51+02:00","dateModified":"2025-04-25T22:34:04+02:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#webpage"},"articleSection":"Magento, Magento 2, Magento 2 Development, Magento Front End Developer, Magento SEO, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","position":2,"name":"Magento","item":"https:\/\/belvg.com\/blog\/category\/magento","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#listItem","name":"What is SKU in Magento and How to Generate it?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#listItem","position":3,"name":"What is SKU in Magento and How to Generate it?","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author","url":"https:\/\/belvg.com\/blog\/author\/andrey-litvin","name":"Andrey Litvin","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e1a6e3c80cb940fddb65016d94b015cd951b4a8a9cd7227565131f28ea95c7a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Andrey Litvin"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#webpage","url":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html","name":"How To Generate and Change SKU in Magento | BelVG Blog","description":"Learn the difference between product ID, SKU & UPC in Magento. Find out what SKU consists of and how to change SKU in admin panel and in the database","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/andrey-litvin#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/04\/What-is-SKU-in-Magento-and-How-to-Generate-it.webp","@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html\/#mainImage","width":1108,"height":590},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html#mainImage"},"datePublished":"2019-04-25T17:17:51+02:00","dateModified":"2025-04-25T22:34:04+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"21582","title":"How To Generate and Change SKU in Magento | #site_title","description":"Learn the difference between product ID, SKU &amp; UPC in Magento. Find out what SKU consists of and how to change SKU in admin panel and in the database","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:36:48","updated":"2026-11-03 18:36:48"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento\" title=\"Magento\">Magento<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWhat is SKU in Magento and How to Generate it?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento","link":"https:\/\/belvg.com\/blog\/category\/magento"},{"label":"What is SKU in Magento and How to Generate it?","link":"https:\/\/belvg.com\/blog\/what-is-sku-number-in-magento-and-how-to-generate-it.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/21582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=21582"}],"version-history":[{"count":8,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/21582\/revisions"}],"predecessor-version":[{"id":29170,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/21582\/revisions\/29170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/29171"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=21582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=21582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=21582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}