← Back to release summary

Web Custom formats for Async Clipboard API

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 104)
Intent stage
Shipped

Summary

Web Custom formats let websites read and write arbitrary unsanitized payloads using a standardized web custom format, as well as read and write a limited subset of OS-specific formats (for supporting legacy apps). The name of the clipboard format is mangled by the browser in a standardized way to indicate that the content is from the web, which allows native applications to opt-in to accepting the unsanitized content.

Motivation

Powerful web applications would like to exchange data payloads with web and native applications via the OS clipboard (copy-paste). The existing Web Platform has an API that supports the most popular standardized data types (text, image, rich text) across all platforms. However, this API does not scale to the long tail of specialized formats. In particular, custom formats, non-web-standard formats like TIFF (a large image format), and proprietary formats like .docx (a document format), are not supported by the current Web Platform.

Standards & signals

Docs: https://github.com/w3c/editing/blob/gh-pages/docs/clipboard-pickling/explainer.md#web-custom-formats-for-async-clipboard-api https://docs.google.com/document/d/1afc45MQuwxEWgoUeJCO-sOWRSzs31V4JS-kKXJNMTXw/edit

Samples: https://sequoia-innovative-date.glitch.me

Explainers: https://github.com/w3c/editing/blob/gh-pages/docs/clipboard-pickling/explainer.md

View on chromestatus.com