Magento 2 product attribute set is a set of attributes characteristic for a certain kind of product and is used while creating them (e.g. Top has color, size, material, weather, Bag has color, weight, material).

Product attribute sets are used in Magento 2 mainly to simplify your product management so that you don't need to assign every attribute to the product separately. 

You can create attribute set programmatically or via the admin panel. We'll concentrate on the latter option in this article.

Create Attribute Set

To create product attribute set in Magento 2 :

1. Navigate to Admin Panel > Stores > Attributes > Attribute Set.

Magento 2 Product Attribute Set Menu

2. Choose the attribute set you want to edit or press Add Attribute Set in order to add one.

Magento 2 Product Attribute Sets

3. Fill in the attribute set information:

  • Insert the name of the attribute set in the Name field.
  • In the Based On field choose an already existing attribute set a new one will be based on.
  • Press the Save button.

Magento 2 add new product attribute set

Edit Attribute Set

Once new attributes are created you will see the attribute set edit page with an Attribute Set Name that can be edited, the Groups of Attributes assigned to this attribute set, and Unassigned Attributes as well.

In order to add the attribute to the already existing group you just need to drag and drop it into the chosen group.

Magento 2 drag and drop attributes

You can add the new group by pressing the Add New button. Besides, you can delete the attribute group simply by clicking on it and pressing the Delete Selected Group button. Once you have finished don't forget to press the Save button.

Don't forget that there is no option to change the attribute set in Magento 2 by default. So you won't be able to change it once you assign an attribute set to a product. Unless...

...unless you have the Magento 2 Product Grid Inline Editor to help you. It allows you to update product attributes and change attribute set in bulk