Skip to content

How to Batch Rename HTML Files using their Titles

Do you have a bunch of HTML files with random names that you’d want to rename with their corresponding title tags? Here’s a quick way to do it using a bulk renaming utility called ReNamer for Windows PC.

The program is free for personal use but requires registering licence for commercial use. You can download the installer or the portable version from the developer’s site here.

I stumbled on this app while trying to rename some HTML files that had random names that I wanted to merge into one HTML file. Renaming them with their actual titles made it possible to identify them without having to open them first, thus saving me a lot of precious time.

Note: Confirm that your HTML files have Title tags before trying to rename them.


  1. Launch the application and accept the license terms.
  2. Drag and drop the HTML files you want rename into the application’s window or add manually using the Add Files / Add Folder menu buttons.
    Screenshot of ReNamer main window.
  3. Click the Add button or inside the rules box to add a renaming rule.
  4. First, we need to remove the existing name. To do that, select the Delete rule then enable the Till the End option. Leave the other options as they are, then click the Add Rule button.
    A screenshot of ReNamer's delete rules window.
  5. You’ll get a validation error that you have duplicates in the list since all the files have no file names. Ignore the error and instead click to add another rule.
  6. Select the Insert rule then click on the Insert Meta Tag button.
    A screenshot of ReNamer's Insert rules window.
  7. Select the HTML_TITLE tag from the list and click the Insert button.
    A screenshot of ReNamer's meta tags list.
  8. Doing that will add :HTML_Title: into the Insert configuration box. Click the Add Rule button to go back to the main window.
  9. The application will validate the rules once more. If you get any validation errors like Invalid characters or duplicates make sure to either correct the affected files or remove them from the list before renaming.
  10. Preview the new file names and if everything is fine, click the Rename button to rename all of them at once. Should you want to undo the renaming, just use Shift+Ctrl+Z or go to File > Undo Renaming. The original file names will then be restored.

Note that you can add other rules to fine tune the new names to your liking. When adding new rules pay attention to their order as the top most rules take precedence over those below it.


Leave a Reply

Feel free to share your comments or questions with me. I may not be able to respond immediately so please check later once I've approved your comment.

Your email address will not be published. Required fields are marked *

Kelvin Kathia

Kelvin Kathia is a writer that's passionate about sharing solutions to everyday tech problems. He's the founder and editor of Journey Bytes, a tech blog and web design agency. Feel free to leave him comments or questions regarding this post, or by leaving him a message on the contact page. If you found his content helpful, a donation is much appreciated.