# Importing tags with line breaks from a .csv file

**URL:** <https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026>\
**Category:** Support\
**Created:** [November 3, 2026, 9:42am UTC](https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026 "2026-11-03T09:42:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoubleXP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@DoubleXP](https://community.mp3tag.de/u/DoubleXP)\
**Post date:** [November 3, 2026, 9:42am UTC](https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026/1 "2026-11-03T09:42:46Z")

</div>

Hello everyone,

I use the export and import functions in MP3Tag to selectively copy specific tags from one set of audio files to another via .csv files.

I’ve just come across [this thread](https://community.mp3tag.de/t/72011) here on the forum, which discussed exporting tags with line breaks into .csv files. This method works without any problems and the line breaks are preserved.

Unfortunately, after trying a few things, I haven’t managed to re-import a .csv file containing fields with line breaks using the ‘Text File – Tag’ function. With .csv files that don’t contain line breaks, it works as usual without any problems.

In my case, it’s exclusively the comments field where I’d like to use line breaks so that the information there can be formatted more clearly.

Perhaps someone on the forum knows a way to make this happen.

Many thanks and best regards  
Christian

---

<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:** [November 3, 2026, 10:07am UTC](https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026/2 "2026-11-03T10:07:25Z")

</div>

For MP3tag a linebreak indicates the end of the record. To import data from a text file with several records, each records must be only 1 line without linebreaks.

The only way around it would be in the source file to replace the linebreaks with a printable unique character or character combination (e.g. `##`), to get a single line, import that data and then replace the `##` in MP3tag with linebreaks.

---

<div class="post-metadata">

**Author:** ![DoubleXP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@DoubleXP](https://community.mp3tag.de/u/DoubleXP)\
**Post date:** [November 3, 2026, 10:27am UTC](https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026/3 "2026-11-03T10:27:08Z")

</div>

Hi ohrenkino,

> [@ohrenkino](#):
>
> The only way around it would be in the source file to replace the linebreaks with a printable unique character or character combination (e.g. `##`), to get a single line, import that data and then replace the `##` in MP3tag with linebreaks.

That was my first thought too.

Replacing line breaks with printable characters via `$replace` funktion the works perfectly well, but I haven’t managed to use the same scripting function to replace those printable characters with line breaks again.

Perhaps you could give me a quick heads-up on that.

Many thanks and best regards  
Christian

---

<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:** [November 3, 2026, 10:33am UTC](https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026/4 "2026-11-03T10:33:59Z")

</div>

After you have imported the data try  
Convert\>Tag - Tag or an action of the type "Format tag field" for COMMENT  
Format string: `$replace(%comment%,##,$char(13)$char(10))`  
(provided the printable characters are `##`)

---

<div class="post-metadata">

**Author:** ![DoubleXP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@DoubleXP](https://community.mp3tag.de/u/DoubleXP)\
**Post date:** [November 3, 2026, 10:56am UTC](https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026/5 "2026-11-03T10:56:11Z")

</div>

Hi ohrenkino,

> [@ohrenkino](#):
>
> Convert\>Tag - Tag or an action of the type "Format tag field" for COMMENT  
> Format string: `$replace(%comment%,##,$char(13)$char(10))`

I think that’s how I tried it. But when I did, the ‘replacement’ characters `##` were literally replaced by `$char(13)$char(10)`.

I don’t have access to my computer at the moment, but I’ll give it another go this evening – maybe I’ve made a mistake somewhere.

I’ll report back here whether it worked or not.

Thanks again!

Best regards  
Christian

---

<div class="post-metadata">

**Author:** ![DoubleXP](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@DoubleXP](https://community.mp3tag.de/u/DoubleXP)\
**Post date:** [November 3, 2026, 5:24pm UTC](https://community.mp3tag.de/t/importing-tags-with-line-breaks-from-a-csv-file/72026/6 "2026-11-03T17:24:15Z")

</div>

Hi ohrenkino,

> [@ohrenkino](#):
>
> After you have imported the data try  
> Convert\> Tag - Tag or an action of the type "Format tag field" for COMMENT  
> Format string: `$replace(%comment%,##,$char(13)$char(10))`  
> (provided the printable characters are `##`)

That works!

I’m not sure where I went wrong in my attempts.

Thank you very much again for your help!

Best regards  
Christian
