How to Create a CSV File for Table Rate Shipping in Magento 2?

If you want to create a CSV file in Magento 2 Table Rate Shipping then go to the Store section then click the Setting option. After this select Configuration and Sales and enter the Shipping Methods. Under Table Rates, set "Condition" based on weight, price, or item count. Download the sample CSV template provided. Edit the CSV file with a spreadsheet tool, adding rates based on destination, shipping price, and weight ranges.