<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPasteboard/PasteboardType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSPasteboardType"
  },
  "title" : "NSPasteboard.PasteboardType"
}
-->

# NSPasteboard.PasteboardType

The supported pasteboard types.

```
struct PasteboardType
```

## Topics

### Pasteboard Types

[`static let URL: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/URL)

URL data for one file or resource.

[`static let collaborationMetadata: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/collaborationMetadata)

An object you use for conveying data during a collaboration.

[`static let color: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/color)

Color data.

[`static let fileContents: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/fileContents)

A representation of a file’s contents.

[`static let fileURL: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/fileURL)

A file URL.

[`static let findPanelSearchOptions: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/findPanelSearchOptions)

Type for the find panel metadata property list.

[`static let font: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/font)

Font and character information.

[`static let html: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/html)

Type for HTML content.

[`static let multipleTextSelection: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/multipleTextSelection)

Multiple text selection.

[`static let pdf: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/pdf)

PDF data.

[`static let png: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/png)

PNG image data.

[`static let rtf: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/rtf)

Rich Text Format (RTF) data.

[`static let rtfd: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/rtfd)

RTFD formatted file contents.

[`static let ruler: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/ruler)

Paragraph formatting information.

[`static let sound: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/sound)

Sound data.

[`static let string: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/string)

String data.

[`static let tabularText: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/tabularText)

Tab-separated fields of text.

[`static let textFinderOptions: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/textFinderOptions)

Type for the Find panel metadata property list.

[`static let tiff: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/tiff)

Tag Image File Format (TIFF) data.

### Option Keys

[`struct FindPanelSearchOptionKey`](/documentation/AppKit/NSPasteboard/PasteboardType/FindPanelSearchOptionKey)

Search options for the find panel.

[`struct TextFinderOptionKey`](/documentation/AppKit/NSPasteboard/PasteboardType/TextFinderOptionKey)

Search options for text in Finder.

### Initializers

[`init(String)`](/documentation/AppKit/NSPasteboard/PasteboardType/init(_:))

[`init(rawValue: String)`](/documentation/AppKit/NSPasteboard/PasteboardType/init(rawValue:))

### Deprecated

[`static let filePromise: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/filePromise)

Promised files.

[`static let inkText: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/inkText)

Ink text data.

[`static let postScript: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/postScript)

Encapsulated PostScript (EPS) code.

[`static let vCard: NSPasteboard.PasteboardType`](/documentation/AppKit/NSPasteboard/PasteboardType/vCard)

VCard data.

[`var representedPathExtension: String?`](/documentation/AppKit/NSPasteboard/PasteboardType/representedPathExtension)

A file type based on the passed pasteboard type.

[`static func fileContentsType(forPathExtension: String) -> NSPasteboard.PasteboardType!`](/documentation/AppKit/NSPasteboard/PasteboardType/fileContentsType(forPathExtension:))

Returns a pasteboard type based on the passed file type.

[`static func fileNameType(forPathExtension: String) -> NSPasteboard.PasteboardType!`](/documentation/AppKit/NSPasteboard/PasteboardType/fileNameType(forPathExtension:))

Returns a pasteboard type based on the passed file type.

[`static func representedPathExtensions(from: [NSPasteboard.PasteboardType]) -> [String]?`](/documentation/AppKit/NSPasteboard/PasteboardType/representedPathExtensions(from:))

Returns an array of file types based on the passed pasteboard types.

[`extern NSPasteboardType NSColorPboardType;`](/documentation/AppKit/NSColorPboardType)

`NSColor` data.

[`extern NSPasteboardType NSFilenamesPboardType;`](/documentation/AppKit/NSFilenamesPboardType)

An array of `NSString` objects designating one or more filenames.

[`extern NSPasteboardType NSFontPboardType;`](/documentation/AppKit/NSFontPboardType)

Font and character information.

[`extern NSPasteboardType NSHTMLPboardType;`](/documentation/AppKit/NSHTMLPboardType)

HTML (which an `NSTextView` object can read from, but not write to).

[`extern NSPasteboardType NSMultipleTextSelectionPboardType;`](/documentation/AppKit/NSMultipleTextSelectionPboardType)

Multiple text selection.

[`extern NSPasteboardType NSPDFPboardType;`](/documentation/AppKit/NSPDFPboardType)

PDF data.

[`extern NSPasteboardType NSPICTPboardType;`](/documentation/AppKit/NSPICTPboardType)

QuickDraw picture data.

[`extern NSPasteboardType NSRTFDPboardType;`](/documentation/AppKit/NSRTFDPboardType)

RTFD formatted file contents.

[`extern NSPasteboardType NSRTFPboardType;`](/documentation/AppKit/NSRTFPboardType)

Rich Text Format (RTF) data.

[`extern NSPasteboardType NSRulerPboardType;`](/documentation/AppKit/NSRulerPboardType)

Paragraph formatting information.

[`extern NSPasteboardType NSStringPboardType;`](/documentation/AppKit/NSStringPboardType)

`NSString` data.

[`extern NSPasteboardType NSTIFFPboardType;`](/documentation/AppKit/NSTIFFPboardType)

`NSString` data.

[`extern NSPasteboardType NSTabularTextPboardType;`](/documentation/AppKit/NSTabularTextPboardType)

An `NSString` object containing tab-separated fields of text.

[`extern NSPasteboardType NSURLPboardType;`](/documentation/AppKit/NSURLPboardType)

`NSURL` data for one file or resource.

[`extern NSPasteboardType const NSPasteboardTypeFindPanelSearchOptions;`](/documentation/AppKit/NSPasteboardTypeFindPanelSearchOptions)

Type for the Find panel metadata property list.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)