<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UniformTypeIdentifiers",
  "identifier" : "/documentation/UniformTypeIdentifiers/UTTypeReference/preferredMIMEType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Uniform Type Identifiers"
    ],
    "preciseIdentifier" : "c:objc(cs)UTType(py)preferredMIMEType"
  },
  "title" : "preferredMIMEType"
}
-->

# preferredMIMEType

The preferred MIME type for the type.

```
var preferredMIMEType: String? { get }
```

## Discussion

If available, the preferred (first available) tag of class [`mimeType`](/documentation/UniformTypeIdentifiers/UTTagClass/mimeType). If not `nil`, the value of this property is the best available MIME type value for this type.

The value of this property is equivalent to, but more efficient than:

```swift
type.tags[.mimeType]?.first
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)