I was just trying Magento 2.3 on my shared hosting web server and when I saw that Magento store generates adds .html to product and category URLs by default then I thought it is not good to have on the store because if I would plan to migrate to other CMS like Shopify or WooCommerce later in the future they would not be good for SEO and I’ll have to redirect these .html URL to non .html URLs, which would be an extra task for me.

This post will help your remove .html from Magento 2.3 store product and category URLs.