# How to set title tag like: "filename duration" ?

**URL:** https://community.mp3tag.de/t/how-to-set-title-tag-like-filename-duration/13171
**Category:** Support
**Created:** [March 2, 2012, 10:32pm UTC](https://community.mp3tag.de/t/how-to-set-title-tag-like-filename-duration/13171 "2012-03-02T22:32:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![samz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@samz](https://community.mp3tag.de/u/samz)
#### Post date: [March 2, 2012, 10:32pm UTC](https://community.mp3tag.de/t/how-to-set-title-tag-like-filename-duration/13171/1 "2012-03-02T22:32:58Z")

</div>

Hello,  
For multiple MP3 files in a folder, how to define the Title tag field with: "filename duration in sec" ?  
EXAMPLE: song.mp3, duration 3min 10sec -\> Set title: "song 190"

If MP3TAG cannot do this, what MP3 tag editor can do it?

Thanks and regards.

CONFIG: MS Windows 7 SP1. MP3TAG 2.49b

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [March 2, 2012, 10:45pm UTC](https://community.mp3tag.de/t/how-to-set-title-tag-like-filename-duration/13171/2 "2012-03-02T22:45:39Z")

</div>

Action: Format Value  
Field: TITLE  
Formatstring: %\_filename% %\_length\_seconds%

see here for a list of placeholders:  
[https://docs.mp3tag.de/format](https://docs.mp3tag.de/format)

---

<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:23pm UTC](https://community.mp3tag.de/t/how-to-set-title-tag-like-filename-duration/13171/3 "2026-02-09T12:23:42Z")

</div>


