# Fill Title Tag with data from the filename

**URL:** https://community.mp3tag.de/t/fill-title-tag-with-data-from-the-filename/12914
**Category:** Support
**Created:** [January 9, 2012, 9:04pm UTC](https://community.mp3tag.de/t/fill-title-tag-with-data-from-the-filename/12914 "2012-01-09T21:04:38Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [January 10, 2012, 5:21am UTC](https://community.mp3tag.de/t/fill-title-tag-with-data-from-the-filename/12914/2 "2012-01-10T05:21:38Z")

</div>

> [@volaholick](#):
>
> ... Every one of them ends ... like above and some don't...

Please give examples for all the variations you want to transform.  
According to my experience, the suggested measures do not quite fit the reality if the OP only tells what he thinks is relevant.  
Also, it is not quite clear what you really want: do you want to fill the title tag (as the headline suggests) or do you want to rename the files as in the following you only talk about the filenames and that all the modifications should be performed on the filename - which is a little unusual.

If you want to import the part of the filename up to the underscore, then use the converter filename - tag and enter a mask like this:  
%title%\_%dummy%  
This leaves out everything after the underscore - as you claim:

> [@](#):
>
> What I am wanting to do is delete everything prior to and also delete the \_

But I think that you want to replace the \_ with "Chapter " - which is easily done with an action - see  
[/t/967/1](https://community.mp3tag.de/t/967/1)

you then end up with data in the title tag that still has the number as head.  
You can remove that (if it really is 2 characters wide) with an action of the type "format tag field" for TITLE and the format string  
$cutleft(%title%,2).  
You may then rename the files with the converter Tag-Filename.  
But as I said: I am not sure, what you really want.

---

_[View the full topic](https://community.mp3tag.de/t/fill-title-tag-with-data-from-the-filename/12914)._
