# How to change track/discnumber format to REMOVE total tracks/discs

**URL:** <https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495>\
**Category:** Support\
**Created:** [December 7, 2016, 10:53pm UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495 "2016-12-07T22:53:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redintention](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@Redintention](https://community.mp3tag.de/u/Redintention)\
**Post date:** [December 7, 2016, 10:53pm UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/1 "2016-12-07T22:53:34Z")

</div>

Hi,

I have a number of files that at some point or another have been tagged with track numbers and disc numbers in the format 1/12, 1/2, etc so that it includes the total number of tracks/discs. I am looking for a way to get these just to be a straightforward number.  
Is this easily done with MP3Tag?

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 8, 2016, 4:56am UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/2 "2016-12-08T04:56:09Z")

</div>

> [@Redintention](#):
>
> I have a number of files that at some point or another have been tagged with track numbers and disc numbers in the format 1/12, 1/2, etc so that it includes the total number of tracks/discs. I am looking for a way to get these just to be a straightforward number.  
> Is this easily done with MP3Tag?

Yes.  
Just define an action group with 2 actions inside (Menue-\>Actions-\>Actions or ALT-6):

1. Action  
Type: Guess values  
Source format: %track%  
Guessing pattern: %track%/%dummy%

2. Action  
Type: Guess values  
Source format: %discnumber%  
Guessing pattern: %discnumber%/%dummy%

Mark all files and apply the action group.

---

<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:** [December 8, 2016, 5:05am UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/3 "2016-12-08T05:05:40Z")

</div>

The same could be achieved with actions of the type  
Format value for the respective field  
Format string: $num(%fieldname%,2)

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 8, 2016, 5:51am UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/4 "2016-12-08T05:51:31Z")

</div>

This would result in leading zeros if the discnumber or the tracknumber has only 1 digit.  
If it is wanted, o.k.

---

<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:** [December 8, 2016, 5:54am UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/5 "2016-12-08T05:54:06Z")

</div>

> [@poster](#):
>
> This would result in leading zeros if the discnumber or the tracknumber has only 1 digit.  
> If it is wanted, o.k.

True.  
you may, of course, modify the expression to  
$num(%fieldname%,1)  
This leaves nothing but the first intelligeble number.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 8, 2016, 7:45am UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/6 "2016-12-08T07:45:03Z")

</div>

> [@ohrenkino](#):
>
> $num(%fieldname%,1)  
> This leaves nothing but the first intelligeble number.

and is not universal because you have to filter the cases mit 2 digits and only 1 digit before applying the action.

---

<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:** [December 8, 2016, 8:01am UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/7 "2016-12-08T08:01:13Z")

</div>

> [@poster](#):
>
> and is not universal because you have to filter the cases mit 2 digits and only 1 digit before applying the action.

That is amazing. To my experience the treatment of e.g.  
$num('2016-03-10T04:38:00Z',1) leads to 2016 - the $num() function really only converts a string into a number and has the additional function to supply padding, if requested.

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 8, 2016, 8:26am UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/8 "2016-12-08T08:26:13Z")

</div>

> [@ohrenkino](#):
>
> That is amazing. To my experience the treatment of e.g.  
> $num('2016-03-10T04:38:00Z',1) leads to 2016 - the $num() function really only converts a string into a number and has the additional function to supply padding, if requested.

Shame on me. You are right. I was pretty sure because I tested it but maybe I am getting old. ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

---

<div class="post-metadata">

**Author:** ![Dmob](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dmob/32/7591_2.png) [@Dmob](https://community.mp3tag.de/u/Dmob)\
**Post date:** [May 7, 2020, 4:10pm UTC](https://community.mp3tag.de/t/how-to-change-track-discnumber-format-to-remove-total-tracks-discs/18495/9 "2020-05-07T16:10:20Z")

</div>

I was looking for this for so long! I love it \<3

---

<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-change-track-discnumber-format-to-remove-total-tracks-discs/18495/10 "2026-02-09T12:26:33Z")

</div>


