---
title: outputFormat
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nskeyedarchiver/outputformat
---

# outputFormat

The format in which the receiver encodes its data.

## Declaration

```swift
var outputFormat: PropertyListSerialization.PropertyListFormat { get set }
```

## Discussion

Discussion The available formats are PropertyListSerialization.PropertyListFormat.xml and PropertyListSerialization.PropertyListFormat.binary.

## See Also

### Archiving Data

- [archivedData(withRootObject:requiringSecureCoding:)](foundation/nskeyedarchiver/archiveddata(withrootobject:requiringsecurecoding:).md)
- [finishEncoding()](foundation/nskeyedarchiver/finishencoding().md)
- [encodedData](foundation/nskeyedarchiver/encodeddata.md)
- [requiresSecureCoding](foundation/nskeyedarchiver/requiressecurecoding.md)
- [archivedData(withRootObject:)](foundation/nskeyedarchiver/archiveddata(withrootobject:).md)
- [archiveRootObject(_:toFile:)](foundation/nskeyedarchiver/archiverootobject(_:tofile:).md)
