<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariSettings/openExportBrowsingDataSettings(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSafariSettings(cm)openExportBrowsingDataSettingsWithCompletionHandler:"
  },
  "title" : "openExportBrowsingDataSettings(completionHandler:)"
}
-->

# openExportBrowsingDataSettings(completionHandler:)

Presents the Export Browsing Data sheet from Safari Settings.

```
class func openExportBrowsingDataSettings(completionHandler: (@MainActor @Sendable ((any Error)?) -> Void)? = nil)
```

```
class func openExportBrowsingDataSettings() async throws
```

## Parameters

`completionHandler`

A block the system calls after the operation completes, with an optional error parameter.

- error: `nil` if the export sheet opens successfully; otherwise, an error that indicates the reason for the failure.

## Discussion

This method presents the same data export sheet accessible in Safari’s settings, which enables someone to export their browsing data to a file. The data includes page visit history, reading list information, bookmarks, passwords, payment cards, and browser extensions.

The method returns an error unless you call it while your app is in the foreground.

For information on the file format and steps to import the data, see [Importing data exported from Safari](/documentation/SafariServices/importing-data-exported-from-safari).

---

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)