Default Magento 2 setup comes with .html for all category and product URLs.
Some of the store owners will go with a .html at the end of the url, but these everybody tend to remove that and keep looks more like browsing through folders.
To remove .html from Category URL & Product URL in Magento 2, follow the steps.
- Login to your magento 2 admin panel
- Go to Stores-> Configuration -> Catalog
- Open the Catalog Submenu under Catalog menu.
- From ‘Search Engine Optimizations’ tab delete “.html” from ‘Product URL Suffix’ and ‘Category URL Suffix’
- Save config.
- Now clear your caches.