Finder tags

Also known as: macOS tags

On this page 8

Finder tags are user-defined labels, each with a name and an optional color, that macOS attaches to files and folders so they can be grouped, found and filtered regardless of their location. Within the Finder & files area of macOS, tags complement the folder hierarchy: a folder answers the question of where an item lives, while a tag answers what the item is about or what state it is in. The feature is also called macOS tags, and it replaced the older Finder labels in OS X Mavericks.

Because tags are stored as file metadata rather than as part of the path, one document can carry several tags at once, appear in several tag views simultaneously and keep its tags when moved between folders on the same volume.

How Finder tags are stored on disk

Finder tags live in an extended attribute named com.apple.metadata:_kMDItemUserTags, which holds a binary property list of tag names, each optionally followed by a color index from 0 to 7. The file content itself is never modified, so tagging a document does not change its checksum or its modification date in most cases.

Spotlight indexes the tag attribute, which is why tagged items appear instantly in the sidebar tag views, in search results and in Smart Folder queries. If Spotlight indexing is disabled for a volume, the tags remain on the files, but tag-based browsing becomes slow or incomplete until the index is rebuilt.

The following table summarizes the main storage properties and what each one means in practice.

PropertyValue or behaviorPractical consequence
Storage locationExtended attribute on the itemSurvives renaming and moving within APFS or HFS+
Number of tags per itemNo practical limitSeveral categories can apply at once
Colors availableSeven colors plus noneMany tags must share a color or have none
Search engineSpotlight metadata indexInstant results when indexing is active
Sync across MacsTag list syncs through iCloudTag names and colors stay consistent
Storage properties of Finder tags

Ways to apply and remove tags

macOS offers several equivalent entry points for tagging, so the best method depends on whether a user is filing one document or reorganizing hundreds. Every method writes the same attribute, so tags applied in one place are visible everywhere.

MethodWhere it is foundBest suited for
Context menuControl-click on selected itemsQuick tagging of a few files
Toolbar Tags buttonFinder window toolbarAdding new tag names while browsing
Save dialog fieldTags field when saving a documentTagging at the moment of creation
Drag to sidebar tagTags section of the Finder sidebarBulk tagging of a large selection
Get Info windowTags field at the top of the windowReviewing all tags on one item
Keyboard shortcutControl plus 1 to 7 on recent macOSFast tagging with favorite tags
Common tagging methods compared

Removing a tag from an item uses the same menus. Deleting a tag entirely in Finder Settings, Tags pane, removes that tag name from the list and from every indexed item, which is a destructive change that cannot be undone with the Edit menu.

Finder tags compared with folders and Smart Folders

Tags, folders and Smart Folders solve different organizing problems, and experienced users combine all three rather than choosing one. A folder imposes a single hierarchy, a tag adds many-to-many classification, and a Smart Folder is a saved Spotlight query that can use tags as one of its criteria.

ToolRelationship to filesStrengthLimitation
FolderItem is in exactly one folderClear physical locationOne category per item
Finder tagItem can have many tagsCross-folder groupingDepends on metadata support
Smart FolderVirtual view of matching itemsCombines tags, dates and kindsRelies on Spotlight index
AliasPointer to one original itemItem appears in a second placeNo classification meaning
Organizing tools in Finder

A frequent design is to keep folders for ownership or project boundaries and use tags for status and cross-cutting themes, such as Review, Invoice or Archive. A Smart Folder that shows every item tagged Review and modified in the last 30 days then becomes a dynamic work queue without moving any file.

When tags survive and when they are lost

The single most important limitation of Finder tags is that they travel only where extended attributes travel. Copies within macOS on APFS or HFS+ keep tags, but many transfers silently strip them, which is the source of most complaints about lost tags.

Transfer or storageTags preservedReason
Copy between APFS volumesYesNative extended attribute support
iCloud DriveYesApple syncs the tag metadata
FAT32 or exFAT drivePartlyStored in hidden AppleDouble files
SMB share from a NASDepends on serverRequires streams or AppleDouble support
Email attachmentNoOnly file content is sent
Third-party cloud syncVaries by serviceMany services ignore extended attributes
ZIP made by Archive UtilityUsually yesMetadata kept in a hidden folder
Tag survival by transfer type

On non-Apple file systems, macOS writes tags into AppleDouble companion files whose names begin with a dot and an underscore. Deleting those files on Windows or Linux removes the tags permanently, so testing a workflow before relying on tags for shared storage is essential.

Working with tags from the command line

Administrators and power users can read and search tags without the Finder. The mdfind command queries the Spotlight index, for example mdfind "kMDItemUserTags == Review", and mdls -name kMDItemUserTags lists the tags of a single file. The xattr command shows the raw attribute, although its binary property list format is not meant for direct editing.

  • Searching by tag: mdfind returns paths of all indexed items with a given tag.
  • Inspecting one file: mdls prints the tag names Spotlight has recorded.
  • Writing tags in scripts: open-source utilities or AppleScript are safer than editing the attribute by hand.
  • Backups: Time Machine and rsync with extended attribute options preserve tags, while basic cp options may not.

Common mistakes with Finder tags

Most problems with tags come from treating them as a replacement for folders or from creating too many of them. A short, stable vocabulary of roughly five to fifteen tags is easier to apply consistently than dozens of overlapping names.

  • Relying on color alone: only seven colors exist, so color should signal priority or status, not subject.
  • Inconsistent spelling: tags named Invoice and Invoices are different tags and split search results.
  • Assuming tags sync everywhere: tags may disappear on shares or cloud services that ignore metadata.
  • Deleting a tag globally by accident: removal in Finder Settings affects every tagged item.

The short version

Finder tags work like colored sticky notes on files. A document does not have to sit in only one drawer. You can stick several notes on it, such as Urgent, Taxes or Family. Later, your Mac can show everything with a certain note, no matter which folder it sits in.

The notes are attached to the file itself. They usually stay when you move or rename it. The catch is that some places peel the notes off, such as email or certain shared drives. Tags therefore work best for files you keep on your Mac or in iCloud Drive.

Where it makes a difference

A freelance architect keeps client projects in separate folders, one per client, each holding drawings, contracts, invoices and photos. At the end of each quarter, she needs every unpaid invoice across about 40 project folders. She creates two tags, Invoice in red and Paid in green, and applies Invoice when saving each billing document from her accounting app.

She then builds a Smart Folder with the rule tag is Invoice and tag is not Paid. When a payment arrives, she adds the Paid tag and the file drops out of the view automatically. Her quarterly review shrinks from an hour of browsing folders to a single window showing about a dozen open invoices, while the project folder structure stays untouched. Because her backup drive is formatted as APFS, the tags are also preserved in her Time Machine copies.