# convert multi disc album track numbers

**URL:** <https://community.mp3tag.de/t/convert-multi-disc-album-track-numbers/19448>\
**Category:** Support\
**Created:** [October 17, 2017, 5:00am UTC](https://community.mp3tag.de/t/convert-multi-disc-album-track-numbers/19448 "2017-10-17T05:00:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARijlaarsdam](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@MARijlaarsdam](https://community.mp3tag.de/u/MARijlaarsdam)\
**Post date:** [October 17, 2017, 5:00am UTC](https://community.mp3tag.de/t/convert-multi-disc-album-track-numbers/19448/1 "2017-10-17T05:00:11Z")

</div>

I wanted to convert track numbers from multi disc albums to the following format (d=disc, track=track)

D(0)T

e.g. 101,102..201,202...1001,1002..1010, etc.

While some players understand the disc number field for sorting, some need this trick to correctly sort these albums.

As some of my box sets have \>150 discs I would prefer this to be done automatically.

I created a format value action.  
Field: TRACK  
Format String: $add($mul(%DISCNUMBER%,100),%TRACK%)

One drawback is that the original track number is not stored anymore so repetitive application of this action will create weird results (which can easily be corrected by a function which does exactly the oposite.

---

<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:** [October 17, 2017, 5:04am UTC](https://community.mp3tag.de/t/convert-multi-disc-album-track-numbers/19448/2 "2017-10-17T05:04:43Z")

</div>

If you create an action group that performs not just one step but first gets the pure TRACK number and then merges it with the discnumber, you stay clean:

Format value for TRACK  
Format string: $mod(%track%,1000)

Format value for TRACK  
Format string: $mod(%track%,100)

To merge  
Format String: $add($mul(%DISCNUMBER%,100),%TRACK%)  
(as you already wrote)

---

<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:** [October 17, 2017, 6:25am UTC](https://community.mp3tag.de/t/convert-multi-disc-album-track-numbers/19448/3 "2017-10-17T06:25:51Z")

</div>

> [@Martin R](#):
>
> I wanted to convert track numbers from multi disc albums to the following format (d=disc, track=track) ... e.g. 101,102..201,202...1001,1002..1010, etc.  
> ... As some of my box sets have \>150 discs I would prefer this to be done automatically. ...  
> One drawback is that the original track number is not stored anymore so repetitive application of this action will create weird results ...

If you want to remember the old values, then you can save them in your own tag fields, for example:  
TRACK\_ORIGINAL \<== $if2(%TRACK\_ORIGINAL%,%TRACK%)  
DISC\_ORIGINAL \<== $if2(%DISC\_ORIGINAL%,%DISCNUMBER%)

When dealing with numbers, it is often a question of whether the following sorting should take place numerically or alphabetically.  
For safety reasons, the alphabetical sorting can be used by preparing the numerical values, e. g. ...  
two digits: 1 -\> 01, 2 -\> 02, etc.  
three digits: 1 -\> 001, 2 -\> 002, etc.

Some automation is obtained with the following formatstring ...  
after selecting the files to be numbered ... ... apply the formatstring ...

TRACK \<== $num(%\_counter%,$len(%\_total\_files%))'/'$num(%\_total\_files%,$len(%\_total\_files%))

... or without the slash divider ...  
TRACK \<== $num(%\_counter%,$len(%\_total\_files%))$num(%\_total\_files%,$len(%\_total\_files%))

DD.20171017.1031.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:27pm UTC](https://community.mp3tag.de/t/convert-multi-disc-album-track-numbers/19448/4 "2026-02-09T12:27:03Z")

</div>


