<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAttributedString/DocumentAttributeKey/converted",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation",
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSConvertedDocumentAttribute"
  },
  "title" : "converted"
}
-->

# converted

A value that indicates whether a filter service converted the file.

```
static let converted: NSAttributedString.DocumentAttributeKey
```

## Discussion

The value of this attribute is an [`NSNumber`](/documentation/Foundation/NSNumber) object containing an integer. Indicates whether the file was converted by a filter service.

If missing or 0, the file was originally in the format specified by [`documentType`](/documentation/Foundation/NSAttributedString/DocumentAttributeKey/documentType). If negative, the file was originally in the format specified by document type, but the conversion to [`NSAttributedString`](/documentation/Foundation/NSAttributedString) may have been lossy. If 1 or more, it was converted to this type by a filter service.

The string constant in macOS 10.3 and earlier is `@"Converted"`.

---

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)