# Import title from filename

**URL:** https://community.mp3tag.de/t/import-title-from-filename/13269
**Category:** Support
**Created:** [March 30, 2012, 7:42pm UTC](https://community.mp3tag.de/t/import-title-from-filename/13269 "2012-03-30T19:42:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Snotnose](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ccd318/32.png) [@Snotnose](https://community.mp3tag.de/u/Snotnose)
#### Post date: [March 30, 2012, 7:42pm UTC](https://community.mp3tag.de/t/import-title-from-filename/13269/1 "2012-03-30T19:42:39Z")

</div>

I must be stupid, I can't figure this out. I have a directory of untagged files. I managed to group-change the album and artist fields, but can't get the title. I want the title tag to be the filename with the trailing .mp3 removed.

How do I do this?

While I'm at it, I've got another directory with the artist name in the file name. How do I tell it to rename all the files but remove the artist. For example  
01 - Beatles - I wanna hold your hand  
02 - Beatles - Yesterday

I want to remove - Beatles.

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [March 30, 2012, 8:43pm UTC](https://community.mp3tag.de/t/import-title-from-filename/13269/2 "2012-03-30T20:43:20Z")

</div>

> [@Snotnose](#):
>
> I must be stupid, I can't figure this out. I have a directory of untagged files. I managed to group-change the album and artist fields, but can't get the title. I want the title tag to be the filename with the trailing .mp3 removed.
> 
> How do I do this?

Use format with:  
FORMAT FIELD: TITLE  
FORMAT VALUE: %\_filename%

> [@Snotnose](#):
>
> While I'm at it, I've got another directory with the artist name in the file name. How do I tell it to rename all the files but remove the artist. For example  
> 01 - Beatles - I wanna hold your hand  
> 02 - Beatles - Yesterday
> 
> I want to remove - Beatles.

Use regexp replace:  
reg exp: ^(\d+)\s+-\s+.+\s+-\s+(.+)$  
replace with: $1 - $2

On my fone so hadnt the chance to test.

---

<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: [March 31, 2012, 6:21am UTC](https://community.mp3tag.de/t/import-title-from-filename/13269/3 "2012-03-31T06:21:31Z")

</div>

> [@Snotnose](#):
>
> ...How do I do this?
> 
> While I'm at it, I've got another directory with the artist name in the file name. How do I tell it to rename all the files but remove the artist. For example  
> 01 - Beatles - I wanna hold your hand  
> 02 - Beatles - Yesterday
> 
> I want to remove - Beatles.

Use the converter Filename-Tag.  
If the filename is the title then enter this mask:  
%title%  
The Preview function in that dialogue should help you to find the right mask  
A hint: if there is information in a filename that you do not want then use %dummy% for that part.

The renaming business can be done with the converter tag-filename.  
Provided that you have the information in the tags (track, artist, title) then use this mask:  
$num(%track%,2) - %title%  
(the $num-stuff creates a leading zero)

---

<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: [February 9, 2026, 12:23pm UTC](https://community.mp3tag.de/t/import-title-from-filename/13269/4 "2026-02-09T12:23:45Z")

</div>


