# Create Tag from first 6 characters of filename

**URL:** https://community.mp3tag.de/t/create-tag-from-first-6-characters-of-filename/63928
**Category:** Support
**Created:** [February 28, 2024, 8:11pm UTC](https://community.mp3tag.de/t/create-tag-from-first-6-characters-of-filename/63928 "2024-02-28T20:11:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![HHH](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@HHH](https://community.mp3tag.de/u/HHH)
#### Post date: [February 28, 2024, 8:11pm UTC](https://community.mp3tag.de/t/create-tag-from-first-6-characters-of-filename/63928/1 "2024-02-28T20:11:16Z")

</div>

How can I grab a part of file name and import it to a Tag

Example:  
143488\_Feedback\_Original\_Mix.wav

Would like to covert 143488 into Beatport Track ID

I'm looking into convert, filename to Tag or Actions. Is there a way to create an action that grabs the first 6 characters of the filename and imports it to beatport track ID?

Not sure if this is the right place to ask  
Thanks!!

---

<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: [February 28, 2024, 8:33pm UTC](https://community.mp3tag.de/t/create-tag-from-first-6-characters-of-filename/63928/2 "2024-02-28T20:33:52Z")

</div>

> [@HHH](#):
>
> an action that grabs the first 6 characters of the filename and imports it to beatport track ID

Try an Action from type "Format Value":  
`$left(%_FILENAME%,6)`  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/f/6/f63c110aa2cc19385bcb331931f86de16ef3e500.png)

You need to adjust the target field, in this example  
`BEATPORTTRACKID`

---

<div class="post-metadata">

### Author: ![HHH](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e9c0ed/32.png) [@HHH](https://community.mp3tag.de/u/HHH)
#### Post date: [February 28, 2024, 8:54pm UTC](https://community.mp3tag.de/t/create-tag-from-first-6-characters-of-filename/63928/3 "2024-02-28T20:54:36Z")

</div>

> [@LyricsLover](#):
>
> $left(%\_FILENAME%,6)

This worked, 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: [March 29, 2024, 8:54pm UTC](https://community.mp3tag.de/t/create-tag-from-first-6-characters-of-filename/63928/4 "2024-03-29T20:54:39Z")

</div>

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