# How to add title based on the filename and a list

**URL:** <https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005>\
**Category:** Support\
**Created:** [December 1, 2020, 12:51pm UTC](https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005 "2020-12-01T12:51:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Najat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/c77e96/32.png) [@Najat](https://community.mp3tag.de/u/Najat)\
**Post date:** [December 1, 2020, 12:51pm UTC](https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005/1 "2020-12-01T12:51:21Z")

</div>

Hi, I wonder if the next thing is possible.

For example: I have files that are numbered like

001.mp3  
002.mp3  
003.mp3  
004.mp3  
etc

Is it possible to do a conversion so that the titles of the files are renamed like

001.mp3 --\> 001 - aaa  
002.mp3 --\> 002 - bbb  
003.mp3 --\> 003 - ccc  
004.mp3 --\> 004 - ddd

I have a list of the titles based on the numbers.

I'm not familiar with replacing with regular expressions and hope someone could help.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 1, 2020, 12:55pm UTC](https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005/2 "2020-12-01T12:55:31Z")

</div>

> [@Najat](#):
>
> Is it possible to do a conversion

I fyou want to fiddle only with the filename, then you could edit the text file to become a batch job and rename the files without the need to use MP3tag.

With MP3tag, you could import the data into the TITLE field and then compose a new filename with the tag field data.  
If would now be much simpler to explain how to import the data into TITLE if you showed us the first (or some more) line(s) from the text file.

---

<div class="post-metadata">

**Author:** ![Najat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/c77e96/32.png) [@Najat](https://community.mp3tag.de/u/Najat)\
**Post date:** [December 1, 2020, 1:09pm UTC](https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005/3 "2020-12-01T13:09:34Z")

</div>

Thank you for your quick reply.

These are some lines I have with the filenames and the corresponding titles:

001.mp3 --\> "001 - De Opener"  
002.mp3 --\> "002 - De Koe"  
003.mp3 --\> "003 - De Familie van Imraan"  
004.mp3 --\> "004 - De Vrouwen"  
005.mp3 --\> "005 - De Tafel"  
006.mp3 --\> "006 - Het Vee"  
007.mp3 --\> "007 - De Hoge Muren"

I am curious about your reaction!

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 1, 2020, 1:15pm UTC](https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005/4 "2020-12-01T13:15:19Z")

</div>

it looks as though the number of records and the number of files correspond.  
Now try Convert\>Text file-Tag  
Enter the name of the source file.  
Enter as import mask:  
`%track% - %title%`  
Click OK.  
Once the converter has completed the task, the fields TRACK and TITLE should be filled - check the files list for that.

Now use Convert\>Tag-Filename to rename the files.  
Format string: %track% - %title%

If you are not sure that you do it right, try it with a (a set of) sample file(s) first.

---

<div class="post-metadata">

**Author:** ![Najat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/c77e96/32.png) [@Najat](https://community.mp3tag.de/u/Najat)\
**Post date:** [December 1, 2020, 1:36pm UTC](https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005/5 "2020-12-01T13:36:31Z")

</div>

OMG it works!! I didn't expect it to be that simple, thank you very very much! 👍

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [December 31, 2020, 1:36pm UTC](https://community.mp3tag.de/t/how-to-add-title-based-on-the-filename-and-a-list/51005/6 "2020-12-31T13:36:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
