# How to Prepend Four Digit Number to Filename

**URL:** <https://community.mp3tag.de/t/how-to-prepend-four-digit-number-to-filename/53367>\
**Category:** Support\
**Created:** [May 29, 2021, 4:15pm UTC](https://community.mp3tag.de/t/how-to-prepend-four-digit-number-to-filename/53367 "2021-05-29T16:15:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![B\_Dubb\_B](https://community.mp3tag.de/user_avatar/community.mp3tag.de/b_dubb_b/32/9385_2.png) [@B\_Dubb\_B](https://community.mp3tag.de/u/B_Dubb_B)\
**Post date:** [May 29, 2021, 4:15pm UTC](https://community.mp3tag.de/t/how-to-prepend-four-digit-number-to-filename/53367/1 "2021-05-29T16:15:59Z")

</div>

Hi all,

I have a few hundred episodes of a podcast downloaded, and nothing will play them in order on my iPhone. Also, I just want the Filenames to be indicative of the order in which they should be played. They are in separate folders, but I want to merge the folders after I have them all numbered.

Filenames are like this:

Form and Function (Part 01).mp3  
Form and Function (Part 02).mp3  
...

Then in a different folder:

Fit and Finish (Part 01).mp3  
Fit and Finish (Part 02).mp3  
...

I want to take the first 35 episodes in one folder and rename them like this:

0031 - Form and Function (Part 01).mp3  
0032 - Form and Function (Part 02).mp3  
...

Then pick up where I left off in the next folder, like this:

0066 - Fit and Finish (Part 01).mp3  
0067 - Fit and Finish (Part 02).mp3  
...

The reason to start at 0031 is because I have already done the first 30 manually.

Is there any easy way to do this in mp3tag? I'm not good with all this stuff, so a simple and detailed explanation would be best.

Any help would be greatly appreciated!

---

<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:** [May 29, 2021, 4:20pm UTC](https://community.mp3tag.de/t/how-to-prepend-four-digit-number-to-filename/53367/2 "2021-05-29T16:20:11Z")

</div>

Select the files that you want to treat.  
With Converter\>Tag-Tag for \_FILENAME (you probably have to type that in) try  
Format string: `$num($add(30,%_counter%),4) - %_filename%`

---

<div class="post-metadata">

**Author:** ![B\_Dubb\_B](https://community.mp3tag.de/user_avatar/community.mp3tag.de/b_dubb_b/32/9385_2.png) [@B\_Dubb\_B](https://community.mp3tag.de/u/B_Dubb_B)\
**Post date:** [May 29, 2021, 4:24pm UTC](https://community.mp3tag.de/t/how-to-prepend-four-digit-number-to-filename/53367/3 "2021-05-29T16:24:57Z")

</div>

That worked perfectly. Thank you so 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:** [June 28, 2021, 4:25pm UTC](https://community.mp3tag.de/t/how-to-prepend-four-digit-number-to-filename/53367/4 "2021-06-28T16:25:54Z")

</div>

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