# Tag conversion Comment to Track

**URL:** <https://community.mp3tag.de/t/tag-conversion-comment-to-track/54465>\
**Category:** Support\
**Created:** [September 19, 2021, 8:06pm UTC](https://community.mp3tag.de/t/tag-conversion-comment-to-track/54465 "2021-09-19T20:06:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holzno](https://community.mp3tag.de/user_avatar/community.mp3tag.de/holzno/32/9882_2.png) [@Holzno](https://community.mp3tag.de/u/Holzno)\
**Post date:** [September 19, 2021, 8:06pm UTC](https://community.mp3tag.de/t/tag-conversion-comment-to-track/54465/1 "2021-09-19T20:06:36Z")

</div>

How can I convert a Comment tag with content like

_Track 07_

into the track Tag ?

The format string  
_Track %track%_  
does not work ( syntax like scanf in C )!

---

<div class="post-metadata">

**Author:** ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)\
**Post date:** [September 19, 2021, 8:25pm UTC](https://community.mp3tag.de/t/tag-conversion-comment-to-track/54465/2 "2021-09-19T20:25:36Z")

</div>

You can use Convert Tag -\> Tag (or press ALT + 5)  
with the field `TRACK` and format string `%comment%`

**BUT: I do not advice to fill text** like "Track" **into this field**. TRACK should be in format xx/nn,  
where xx is the actual tracknummer and nn is the total number of tracks.

![image](https://community.mp3tag.de/uploads/default/original/2X/e/ea705a787ee925aef914be63c0550ac090460d23.png)

A tracknumber like 07 is fine too.

The official standard says about TRCK:

> The 'Track number/Position in set' frame is a numeric string  
> containing the order number of the audio-file on its original  
> recording. This may be extended with a "/" character and a numeric  
> string containing the total numer of tracks/elements on the original  
> recording. E.g. "4/9"

If you only want to fill `07` from the comment tag "Track 07" into the track field, use  
the format string `$repl(%comment%,Track ,)`

![image](https://community.mp3tag.de/uploads/default/original/2X/3/3418fe77dbf9f429e58e724684810e789d3e7d63.png)

This would replace the text "Track " from the comment field with nothing = delete it and then fill only the number 07 into the tag TRACK. (The comment tag itself remains untouched).

---

<div class="post-metadata">

**Author:** ![Holzno](https://community.mp3tag.de/user_avatar/community.mp3tag.de/holzno/32/9882_2.png) [@Holzno](https://community.mp3tag.de/u/Holzno)\
**Post date:** [September 22, 2021, 8:18am UTC](https://community.mp3tag.de/t/tag-conversion-comment-to-track/54465/3 "2021-09-22T08:18:38Z")

</div>

Thank You, it works fine.  
Very helpful to use Functions / expressions in a format string ( even it is a liitle strange for an old C programmer like me 🙂

---

<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:** [September 22, 2021, 8:25am UTC](https://community.mp3tag.de/t/tag-conversion-comment-to-track/54465/4 "2021-09-22T08:25:36Z")

</div>

> [@Holzno](#):
>
> even it is a liitle strange

If you do not like to enter functions in format strings, perhaps a different action, this time "Guess value" could relieve your troubled mind:  
Source: %comment%  
Target: %dummy% %track%

There are many ways to skin a cat in/with MP3tag.

---

<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:** [October 22, 2021, 8:26am UTC](https://community.mp3tag.de/t/tag-conversion-comment-to-track/54465/5 "2021-10-22T08:26:11Z")

</div>

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