Copy Tag Items to Clipboard


I am a big fan of mp3tag & recently I decided to write a simple script with autohotkey (the amazing free scripting software for desktop) to copy tags to clipboard.

To use this tiny utility, go to tools in mp3tag options. click new & select the exe file in path.
And for the parameter write anything you want to be copied between quotes.

for example:

"%artist% %title%"

enjoy, & post your ideas about this. :wink: (214 KB)

I was wondering if you could post your actual AHK code because I use Autohotkey quite a bit and I might want to modify your code for my own purposes. Did you use basic Autohotkey or Autohotkey_L?

Also what's the purpose of sending tag data to the clipboard? What do you do with it after that?

it has just one line code:

clipboard = %1%
  • note that mp3tag could not launch an AHK file & the file must be compiled.

I use Autohotkey,

I use it to search in sites like google, youtube, & many other sites. rather than creating a tool for each one.

Thank you for this excellent litte tool which works perfectly.

However: could you extend it to the copy of all tags of an album to the clipboard?

I need it badly for the tagging of old CD's which are not found in freedb or any other database, but the tags of which I have on other, newer versions.

I would appreciate highly your solution.

If you want to transfer the entire tags from a group of files to another one you can use the Mp3tag Tag copy feature:

Hi '',

Many thanks for this cute tool. It works a treat.

Now I wonder if it could be developed with some kind of 'append' function to enable the copying of the contents of one field of more than one tag. For example, I select a group of 10 tags; in 'Tools', set the parameter for a new tool 'multiple copy to clipboard' to, say, "%title%"; run 'multiple copy to clipboard' by right clicking, selecting 'tools' then 'multiple copy to clipboard'; then paste a list of the 10 titles into, say, Wordpad!

This could be useful for various purposes but most especially for me as a possible way round what I think is the impossibility in MP3Tag of copying the varying contents of one field in a group of, say, 10 file tags to one field in a different group of 10 file tags.

I'm afraid I have very little programming knowledge so have no idea how easy or difficult this might be.

I'd say that you already find this function if you use the export features.
This creates a text-file that you can open e.g. with wordpad.

Like ohrenkino already said in this thread above, there is the Mp3tag export feature, which allows to create textual output as your wish.

I have created a Mp3tag export output as HTML page with buttons to copy text to clipboard.
Maybe you can adapt it to your needs.
See there ...
Export for RYM


Thanks, ohrenkino, you are quite right; I can get a list of titles in a text file that way - though it's not quite as convenient as 'Copy to clipboard' would be.

This is a different topic - but concerns the reason I wanted such a list, as stated above.

I find now I was wrong in thinking I could use such a list to import the titles into the title field of another set of tags using the 'import from text file' action. All that happens is that I get ALL the titles in the title field of EACH track of the second group!!!! Ah, woe; ah, me! How can one, using MP3Tag or otherwise, copy, separately in order, the varying info in a field of each tag of a group of tags into a field of another group of the the same number of tags? Is it possible?

The "Import text file" action is designed to import a complete text file to a tag field.

If you want a "one line for each file" import you can use "Convert > Text file - tag"

Yet it's also possible to do it with the "Import from text file" action.
You just need a few extra actions that will only leave one line in each tag of the files.

  1. Select files and export one or more tag-fields into a text file, using a report script, creating a CSV alike text format.
  2. Use Converter "Textfile -Tag" to import the CSV alike text data into selected files into tag-fields specified by format string.


1.► Thank you very much for the AutoHotkey Script.ahk. Although, exe wasn't compiled as a Unicode 32 to support Unicode and UTF-8 in display and in copy to clipboard, however it is very easy to fix.
★ I have modified it in this way, here is the Tags To Clipboard.ahk script to be complied into Tags To Clipboard.exe and to be used by MP3Tag Tools ► Options:
clipboard = %1%
ToolTip, %Clipboard%
Sleep, 3000
2.► I think it would be more comfortable, to use at least a divider between Artist and Title, I used the "-" divider.
"%artist% - %title%"

3.► And here you can download the ready Unicode Tags To Clipboard.exe
Tags To (459.7 KB)

The hyphen is probably not the optimum divider/separator between fields as the hyphen also appears in the field text. In my opinion, the underscore _ is a fairly good approach or even something like == which is probably never part of the artist name or title.

1 Like

Thanks. I know it, but however, the dash "-" divider is one of my favorite dividers, and the most of audio file names usually have the dash "-" divider and not the underscore "_" divider between the Artist and the Title.

That may be as it is.
But if you recommend a tool, I would have expected that the recommendation has that little extra that makes it easier to process the data.
If you use the dash e.g. as separator to import the data into a spreadsheet and replace the separator dash and the other dashes automatically e.g. with the tab character, then you get extra columns.
The impression that "most" people use blank-dash-blank as separator would not make it a good reason for me to continue to do so.

1 Like

I have modified the AutoHotkey script to copy tags also from multiple selected files to clipboard for MP3 Tag. Has MP3Tag a "sort" command and can it be used here?
Here is the AutoHotkey code to be compiled into exe:
clipboard = %1%
Temp := Clipboard, Clipboard := ""
ClipWait, 2
Clipboard = %Temp%rn%Clipboard%`r
Clipboard := SubStr(Clipboard,1,StrLen(Clipboard)-1)
ClipWait 2
if ErrorLevel
Sort clipboard, CL
Sleep 100
ToolTip, %Clipboard%
Sleep, 3000
2.► And here is the new "Tags To Clipboard.exe" to use in Tools►Options, it can copy the tags of selected multiple audio files into clipboard. And here you can download the new "Tags To Clipboard.exe":
Tags To (459.9 KB)