# How to remove track number from filename

**URL:** https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085
**Category:** Support
**Created:** [June 25, 2017, 8:23am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085 "2017-06-25T08:23:02Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![tyrus429](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a9a28c/32.png) [@tyrus429](https://community.mp3tag.de/u/tyrus429)
#### Post date: [June 25, 2017, 8:23am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/1 "2017-06-25T08:23:02Z")

</div>

i had few mp3 files which are in the format " **Track 001 songname.mp3** and so on" i want to remove the **Track 001** from it and remain the rest filename as it is. I had tried the method given in FAQ section but it is not working, please help me to remove this.

Method tried------------------  
Remove/trim leading track numbers

Action type: Replace with regular expressions  
Regular expression: ^\s\*\d+\s\*-\s\*  
Replace matches with:

This regular expression removes the track number from "01 - Anything.." so that only "Anything..." remains.  
"^" matches the beginning of the string. Then any numbers of whitespaces "\s\*" followed by numbers from 0-9.  
The \s\*-\s\* part removes the hyphen and any whitespace characters around it.

---

<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: [June 25, 2017, 8:50am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/2 "2017-06-25T08:50:35Z")

</div>

See the FAQs:  
[/t/967/1](https://community.mp3tag.de/t/967/1)

Search String: Track \d+\s  
Replace string:  
(leave empty)

---

<div class="post-metadata">

### Author: ![mjcm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@mjcm](https://community.mp3tag.de/u/mjcm)
#### Post date: [June 25, 2017, 8:51am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/3 "2017-06-25T08:51:26Z")

</div>

- Post withdrawn-

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [June 25, 2017, 9:52am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/4 "2017-06-25T09:52:05Z")

</div>

> [@Tyrus](#):
>
> i had few mp3 files ...

In case you still have mp3 files, then find something useful for your individual case there ...  
[https://www.google.de/search?q=site%3Amp3ta...rs+from+a+field](https://www.google.de/search?q=site%3Amp3tag.de#q=site:mp3tag.de+Remove+numbers+or+other+characters+from+a+field)

DD.20170625.1352.CEST

---

<div class="post-metadata">

### Author: ![tyrus429](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a9a28c/32.png) [@tyrus429](https://community.mp3tag.de/u/tyrus429)
#### Post date: [June 25, 2017, 6:45pm UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/5 "2017-06-25T18:45:07Z")

</div>

> [@ohrenkino](#):
>
> See the FAQs:  
> [/t/967/1](https://community.mp3tag.de/t/967/1)
> 
> Search String: Track \d+\s  
> Replace string:  
> (leave empty)

Not working sir, it is not removing either numbers or track and not doing any operation

---

<div class="post-metadata">

### Author: ![Scum65](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@Scum65](https://community.mp3tag.de/u/Scum65)
#### Post date: [June 25, 2017, 7:39pm UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/6 "2017-06-25T19:39:26Z")

</div>

> [@Tyrus](#):
>
> i had few mp3 files which are in the format " **Track 001 songname.mp3** and so on" i want to remove the **Track 001** from it and remain the rest filename as it is. I had tried the method given in FAQ section but it is not working, please help me to remove this.
> 
> Method tried------------------  
> Remove/trim leading track numbers
> 
> Action type: Replace with regular expressions  
> Regular expression: ^\s\*\d+\s\*-\s\*  
> Replace matches with:
> 
> This regular expression removes the track number from "01 - Anything.." so that only "Anything..." remains.  
> "^" matches the beginning of the string. Then any numbers of whitespaces "\s\*" followed by numbers from 0-9.  
> The \s\*-\s\* part removes the hyphen and any whitespace characters around it.

maybe this will help:

Choose Tag -\> Filename from the Toolbar and choose either  
%artist% - %title% (This renames your files to Artist - Title)  
or  
%title% (This renames your files to just Title).

**This works only with files properly tagged within Artist and Title fields of the file, else results may not be very satisfying!**

---

<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: [June 26, 2017, 2:57am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/7 "2017-06-26T02:57:57Z")

</div>

> [@Tyrus](#):
>
> Not working sir, it is not removing either numbers or track and not doing any operation

Then show us _exactly_ which action you chose and the corresponding parameters including the _real_ filename.

---

<div class="post-metadata">

### Author: ![tyrus429](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a9a28c/32.png) [@tyrus429](https://community.mp3tag.de/u/tyrus429)
#### Post date: [June 26, 2017, 3:23am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/8 "2017-06-26T03:23:26Z")

</div>

> [@Dan Dogma](#):
>
> maybe this will help:
> 
> Choose Tag -\> Filename from the Toolbar and choose either  
> %artist% - %title% (This renames your files to Artist - Title)  
> or  
> %title% (This renames your files to just Title).
> 
> **This works only with files properly tagged within Artist and Title fields of the file, else results may not be very satisfying!**

This method i already know, but i want to modify filename only and not copy title name or anything else in filename, but thankx for rplying.

---

<div class="post-metadata">

### Author: ![tyrus429](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a9a28c/32.png) [@tyrus429](https://community.mp3tag.de/u/tyrus429)
#### Post date: [June 26, 2017, 3:43am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/9 "2017-06-26T03:43:54Z")

</div>

> [@ohrenkino](#):
>
> Then show us _exactly_ which action you chose and the corresponding parameters including the _real_ filename.

I am going to Actions and then replacing your given command with empty string , in filename field.

 ![](https://community.mp3tag.de/uploads/default/original/2X/d/d89ccba54c04108bf64b562a33038b01016e17e9.jpg)

---

<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: [June 26, 2017, 3:50am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/10 "2017-06-26T03:50:10Z")

</div>

> [@Tyrus](#):
>
> I am going to Actions and then replacing your given command with empty string , in filename field.

Then you did not look at the FAQs: that clearly states that you have to use an action of the type "Replace with regular expression."

Also: the filename

> [@](#):
>
> Track 001 songname.mp3

that you supplied does not match the screendump.  
There you have a filename like  
Track 001. songname.mp3

So it would be:  
Search String: Track \d+.\s  
Replace string:  
(leave empty)  
Our answers can only be as good as your input is.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [June 26, 2017, 6:58am UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/11 "2017-06-26T06:58:08Z")

</div>

> [@Tyrus](#):
>
> This method i already know, but i want to modify filename only and not copy title name or anything else in filename ...

Can your answer be understood in this way, that the filename is not composed of data from the tag fields?

DD.20170626.1058.CEST

---

<div class="post-metadata">

### Author: ![phil1129](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b5e925/32.png) [@phil1129](https://community.mp3tag.de/u/phil1129)
#### Post date: [June 26, 2017, 3:05pm UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/12 "2017-06-26T15:05:06Z")

</div>

> [@Tyrus](#):
>
> i had few mp3 files which are in the format " **Track 001 songname.mp3** and so on" i want to remove the **Track 001** from it and remain the rest filename as it is. I had tried the method given in FAQ section but it is not working, please help me to remove this.
> 
> Method tried------------------  
> Remove/trim leading track numbers
> 
> Action type: Replace with regular expressions  
> Regular expression: ^\s\*\d+\s\*-\s\*  
> Replace matches with:
> 
> This regular expression removes the track number from "01 - Anything.." so that only "Anything..." remains.  
> "^" matches the beginning of the string. Then any numbers of whitespaces "\s\*" followed by numbers from 0-9.  
> The \s\*-\s\* part removes the hyphen and any whitespace characters around it.

Looking at your screenshot, if what you want is a filename like this:  
Baarish - DJMaza.Life.mp3

You can try

Action Format Value

Field: \_FILENAME  
Format String: %Dummy. %%title%

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [June 26, 2017, 5:12pm UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/13 "2017-06-26T17:12:52Z")

</div>

> [@Tyrus](#):
>
> i had few mp3 files which are in the format " **Track 001 songname.mp3** and so on" i want to remove the **Track 001** from it and remain the rest filename as it is. ...

You can cut away 10 characters at the left edge of the filename.  
$cutLeft('Track 001 songname',10) ==\> 'songname'

Apply ...  
Convert: Tag - Tag  
... or ...  
Action "Format value"  
Field: \_FILENAME  
Format string: $cutLeft(%\_filename%,10)

DD.20170626.2116.CEST

---

<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:26pm UTC](https://community.mp3tag.de/t/how-to-remove-track-number-from-filename/19085/14 "2026-02-09T12:26:52Z")

</div>


