# help with converting tag\>filename

**URL:** https://community.mp3tag.de/t/help-with-converting-tag-filename/3419
**Category:** Support
**Created:** [June 6, 2006, 6:42pm UTC](https://community.mp3tag.de/t/help-with-converting-tag-filename/3419 "2006-06-06T18:42:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![theVoosh](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ecc23a/32.png) [@theVoosh](https://community.mp3tag.de/u/theVoosh)
#### Post date: [June 6, 2006, 6:42pm UTC](https://community.mp3tag.de/t/help-with-converting-tag-filename/3419/1 "2006-06-06T18:42:05Z")

</div>

Hello. I'm currently using Mp3tag to convert my filenames to something uniform (I like them all to be in the format of "artist name - 01. song name".

My tracknumbers do NOT have leading 0's in the %track% field, and I'd like to keep it that way, but when i convert, I want them to have the leading 0's. I'm currently using this:

$validate($lower(%artist%) - %track%. $lower(%title%),\_)

How could I make it add a leading 0 If it's not a 2 digit number? Any help would be great -- thanks.

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [June 6, 2006, 7:07pm UTC](https://community.mp3tag.de/t/help-with-converting-tag-filename/3419/2 "2006-06-06T19:07:55Z")

</div>

**$num(%track%,2)**

Please read the help file and / or use the search feature next time. 🙂

---

<div class="post-metadata">

### Author: ![theVoosh](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/ecc23a/32.png) [@theVoosh](https://community.mp3tag.de/u/theVoosh)
#### Post date: [June 6, 2006, 7:57pm UTC](https://community.mp3tag.de/t/help-with-converting-tag-filename/3419/3 "2006-06-06T19:57:18Z")

</div>

thanks

---

<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/help-with-converting-tag-filename/3419/4 "2026-02-09T12:19:46Z")

</div>


