# Convert filename \> tag, what am i doing wrong?

**URL:** https://community.mp3tag.de/t/convert-filename-tag-what-am-i-doing-wrong/52749
**Category:** Support
**Created:** [April 8, 2021, 8:23pm UTC](https://community.mp3tag.de/t/convert-filename-tag-what-am-i-doing-wrong/52749 "2021-04-08T20:23:37Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 8, 2021, 8:41pm UTC](https://community.mp3tag.de/t/convert-filename-tag-what-am-i-doing-wrong/52749/2 "2021-04-08T20:41:39Z")

</div>

Hi and welcome!

The format string you're using is missing the hyphen to be able to separate artist and title from each other. As it's now, Mp3tag looks for the first blank (the separator used in the format string between %artist% and %title%), takes anything before as artist and the rest as title.

So a version that matches your intention would be `%artist% - %title%`

More on that here:

> [@Converters to rename files or to import tags](https://community.mp3tag.de/t/converters-to-rename-files-or-to-import-tags/8016/3):
>
> How to import parts of the filename into the tag? Importing tags from filenames and directory names can be done by using the [Converter \> Filename - Tag] Converter \> Filename - Tag. The basic concept is the notion of a format string which describes the structure of the name to import from. The format string is built of either standard text (e.g., Music), placeholders (such as %artist%, %title%, ...), or backslash characters \ that denote directory structures. Here is an example that imports t…

---

_[View the full topic](https://community.mp3tag.de/t/convert-filename-tag-what-am-i-doing-wrong/52749)._
