# Insert number currently at end of filename, into beginning?

**URL:** https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597
**Category:** Support
**Created:** [September 1, 2025, 4:10pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597 "2025-09-01T16:10:59Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Klip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/klip/32/20937_2.png) [@Klip](https://community.mp3tag.de/u/Klip)
#### Post date: [September 1, 2025, 4:10pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/1 "2025-09-01T16:10:59Z")

</div>

I have a lot of mp3s that are all named in this pattern:

Examplefilename episode (number) .mp3

ETA there are no brackets in the actual file names

With “example file name” being any number of different phrases, and the “episode” followed by the number that should be in the “track number” metadata. There is nothing in the “track number” metadata field.

At the moment, the files play out of order as they get sorted alphabetically according to whatever the text in the “Examplefilenam” is. I’d like to take that number after “episode” and place it at the beginning of the filename, and also, if possible, insert it in the “track number” metadata for each track.

So for example, the following filename:

The quick brown fox Episode 1.mp3

should be renamed something like

001 The quick brown fox.mp3 with “1” in the track number metadata

Is this possible?

---

<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: [September 1, 2025, 4:17pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/2 "2025-09-01T16:17:32Z")

</div>

I see now 2 patterns in the filenames:  
one with brackets, the other without.  
Each would need a different treatment.  
So: how do the filenames really look like?

Wouldn't it be easiest to import the track number first into TRACK and then rename the files?

> [@Klip](#):
>
> The quick brown fox Episode 1.mp3

Could get the data into the tag fields with Convert\>Filename-Tag  
Format string: `%title% Episode %track%`

> [@Klip](#):
>
> Examplefilename episode (number) .mp3

Could be treated with Convert\>Filename-Tag  
Format string: `%title% episode (%track%)`

---

<div class="post-metadata">

### Author: ![Klip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/klip/32/20937_2.png) [@Klip](https://community.mp3tag.de/u/Klip)
#### Post date: [September 1, 2025, 4:35pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/3 "2025-09-01T16:35:51Z")

</div>

Thank you, let me try this. Sorry I should have clarified, the actual filenames don’t have brackets.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [September 1, 2025, 4:38pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/4 "2025-09-01T16:38:55Z")

</div>

> [@Klip](#):
>
> Sorry I should have clarified, the actual filenames don’t have brackets.

That's one of the reasons why we strongly prefer REAL filenames and multiple examples to identify a pattern.

---

<div class="post-metadata">

### Author: ![Klip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/klip/32/20937_2.png) [@Klip](https://community.mp3tag.de/u/Klip)
#### Post date: [September 1, 2025, 4:46pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/5 "2025-09-01T16:46:31Z")

</div>

Fair enough!  
Here are some actual file names:

Where the River Goes Critical Role Campaign 2, Episode 15  
Well Beneath Critical Role Campaign 2, Episode 54  
Whispers of War Critical Role Campaign 2, Episode 18  
With Great Power... Critical Role Campaign 2, Episode 94  
Within the Nest Critical Role Campaign 2, Episode 28

I just randomly chose a bunch that start with “w” as my file explorer lists them alphabetically but they start with all kinds of different letters.

---

<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: [September 1, 2025, 4:54pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/6 "2025-09-01T16:54:36Z")

</div>

After you have filled the tag fields, try Convert\>Tag-Filename  
Format string: `$num(%track%,3) %title%`

---

<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: [September 1, 2025, 4:59pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/8 "2025-09-01T16:59:44Z")

</div>

The tag fields can be filled with the suggestion here:

> [@ohrenkino](#):
>
> get the data into the tag fields with Convert\>Filename-Tag  
> Format string: `%title% Episode %track%`

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [September 1, 2025, 5:02pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/9 "2025-09-01T17:02:38Z")

</div>

> [@Klip](#):
>
> Within the Nest Critical Role Campaign 2, Episode 28

Thanks to your real filenames, you can try:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/d/c/dcf25f160ee06e0e934855e0132199ee5cad5287.png)

---

<div class="post-metadata">

### Author: ![Klip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/klip/32/20937_2.png) [@Klip](https://community.mp3tag.de/u/Klip)
#### Post date: [September 1, 2025, 5:02pm UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/10 "2025-09-01T17:02:39Z")

</div>

> [@ohrenkino](#):
>
> `%title% Episode %track%`

Thank you yes I just saw that. I’m trying this out now, and it seems to be working.

---

<div class="post-metadata">

### Author: ![Klip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/klip/32/20937_2.png) [@Klip](https://community.mp3tag.de/u/Klip)
#### Post date: [September 2, 2025, 6:59am UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/11 "2025-09-02T06:59:28Z")

</div>

Thank you! That is very helpful.

---

<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: [October 2, 2025, 7:00am UTC](https://community.mp3tag.de/t/insert-number-currently-at-end-of-filename-into-beginning/69597/12 "2025-10-02T07:00:02Z")

</div>

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