# Track Number Formatting

**URL:** https://community.mp3tag.de/t/track-number-formatting/71408
**Category:** Support
**Created:** [June 7, 2026, 1:06pm UTC](https://community.mp3tag.de/t/track-number-formatting/71408 "2026-06-07T13:06:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![djhalnon](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djhalnon/32/22947_2.png) [@djhalnon](https://community.mp3tag.de/u/djhalnon)
#### Post date: [June 7, 2026, 1:06pm UTC](https://community.mp3tag.de/t/track-number-formatting/71408/1 "2026-06-07T13:06:30Z")

</div>

I'm sure this has been covered to death but I'm going to ask anyway because what I'm trying to do is actually two different things, but at the same time. I can find answers for both individually, but not taken together, which is a problem.

My music collection has track numbers mostly in the form of "1/8" or "3/15" (for example) indicating both the actual track number and total tracks on the album. I'd like to rename the files with the inclusion of the track's number, but not the total number of tracks. I'd also like it to be 2 digits, including a leading 0 if needed.

Examples: Track with 3/15 would generate "03"; track with 12/20 would generate "12", etc.

In preparation for working with this, I've already created a custom tag, "TRACKNUM," which currently has the original TRACK tag contents in it. Anything I change will be done to that.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [June 7, 2026, 1:19pm UTC](https://community.mp3tag.de/t/track-number-formatting/71408/2 "2026-06-07T13:19:06Z")

</div>

You can rename the files using **Convert → Tag - Filename** and use `$num(%track%,2)` to only get the 2-digit track number, but not the total number of tracks.

---

<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 14, 2026, 1:19pm UTC](https://community.mp3tag.de/t/track-number-formatting/71408/3 "2026-06-14T13:19:39Z")

</div>

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