# Tracknumbers

**URL:** https://community.mp3tag.de/t/tracknumbers/1309
**Category:** Support
**Created:** [September 14, 2004, 7:15pm UTC](https://community.mp3tag.de/t/tracknumbers/1309 "2004-09-14T19:15:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![j-p-w](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@j-p-w](https://community.mp3tag.de/u/j-p-w)
#### Post date: [September 14, 2004, 7:15pm UTC](https://community.mp3tag.de/t/tracknumbers/1309/1 "2004-09-14T19:15:58Z")

</div>

Hey volks!  
I am using mp3tag very often, but I've still got a problem.  
When I am building the filename from the idtag, the tracknumber has got only one-digit. This causes the explorer to sort tracks like this:  
1-blablablub  
10-blablablablubblub...  
and so on

So I use Rentager to make the tracknumber two-digit!  
I there a possibility to let mp3tag do this for me, while renaming my files by tag-information?

Keep on tagging and have a nice day

j-p-w

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 14, 2004, 7:30pm UTC](https://community.mp3tag.de/t/tracknumbers/1309/2 "2004-09-14T19:30:22Z")

</div>

If you write in english why not post in the english section?  
And the answer to your problem is: $num("%track%",2) instead of only %track%  
See mp3tag help for further descriptions of scripting functions.

---

<div class="post-metadata">

### Author: ![locutus](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@locutus](https://community.mp3tag.de/u/locutus)
#### Post date: [March 8, 2008, 11:26am UTC](https://community.mp3tag.de/t/tracknumbers/1309/3 "2008-03-08T11:26:05Z")

</div>

Hmmm, i have searched in the forum for a while and looked in the helpfile, but i don´t find the right answer.

1. How do i set the default format string for %track%
2. How do i replace a single digit into one with a leading zero? If i use your string above in the actions, it is formatted to "00", deleting the origin value of the field.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [March 8, 2008, 12:25pm UTC](https://community.mp3tag.de/t/tracknumbers/1309/4 "2008-03-08T12:25:07Z")

</div>

That's a really old thread with outdated information.

Read here for example: [/t/4112/1](https://community.mp3tag.de/t/4112/1)  
Closed.

---

<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:19pm UTC](https://community.mp3tag.de/t/tracknumbers/1309/5 "2026-02-09T12:19:15Z")

</div>


