How to remove .html extensions using .htaccess

To open .htaccess file using FTP and add these following codes

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]