# File tags

> The tags Trellis writes to FLAC and MP3 files, and what happens to the tags already there.

Under Organize my files, Trellis writes one set of tags to every file in a recording when you choose **Write Tags to Files** on the File Tags pane. Settings › Files can also write them automatically when a recording is added and when a change is saved.

## The tag suite

| Field | FLAC (Vorbis comment) | MP3 (ID3v2) | Written from |
|---|---|---|---|
| Artist | `ARTIST` | Artist (`TPE1`) | The artist |
| Album artist | `ALBUMARTIST` | Album Artist (`TPE2`) | The artist |
| Album | `ALBUM` | Album (`TALB`) | Live recordings: date and venue, as `1977-05-08 - Barton Hall`. Albums: the album title |
| Date | `DATE` | Year (`TDRC`) | The show date: `1977-05-08`, `1977-05` or `1977` |
| Venue | `VENUE` | Custom field (`TXXX:VENUE`) | The venue name |
| Location | `LOCATION` | Custom field (`TXXX:LOCATION`) | City, state and country: `Ithaca, NY, US` |
| Source | `SOURCE` | Custom field (`TXXX:SOURCE`) | SBD, AUD, FM and so on |
| Lineage | `LINEAGE` | Custom field (`TXXX:LINEAGE`) | The lineage |
| Genre | `GENRE` | Genre (`TCON`) | The artist's genre |
| Performer | `PERFORMER`, one per musician | Custom field (`TXXX:PERFORMER`), one value per musician | The Members and Guests who played that show |
| Engineer | `ENGINEER`, as `Name (recording)`, `Name (transfer)` or `Name (mastering)` | Involved People (`TIPL`), as `recording engineer`, `transfer engineer` or `mastering engineer` | The recording's engineers, live recordings only |
| Title | `TITLE` | Title (`TIT2`) | The track title |
| Track | `TRACKNUMBER`, `TRACKTOTAL` | Track (`TRCK`), as `3/14` | Track number and count |
| Disc | `DISCNUMBER`, `DISCTOTAL` | Disc (`TPOS`), as `1/2` | Multi-disc recordings only |
| Composer | `COMPOSER` | Composer (`TCOM`) | The track's songwriter |
| Comment | `COMMENT` | Comment (`COMM`) | The track's note |

A field with no value is not written.

## Tags already on the file

Trellis replaces the tags in the table and removes other spellings of them, such as `ALBUM ARTIST` and `TOTALTRACKS`. Every other tag on the file, ReplayGain and MusicBrainz IDs included, is kept, and so is embedded artwork.

A tag write changes a file's MD5 checksum. Its FFP stays the same. See [Checksums](https://trellismusiclibrary.com/docs/checksums).

## Reading tags

On import, Trellis reads the tags above. It also accepts `CONCERTDATE`, `CONCERTVENUE`, `CONCERTLOCATION` and `RECORDINGSOURCE`, and reads engineer credits from `TAPER` and `TRANSFER`.
