Show file extensions in File Explorer or Finder
Right-click the file
Select Rename
Replace the current extension with the new one
Press Enter or Return
Confirm the change if prompted
Make sure the new extension matches the file type
Use a command line tool if needed
Rename multiple files with a batch or script if required
