Clipboard Patterns

Developers handling clipboard interactions have a range of established patterns to draw from, covering both copying content out of and reading content into the browser.

Copy Images

Image copying to the clipboard in PNG and SVG formats is supported in many current browsers.

Copy Text

Text copying relies on legacy and modern APIs, with support depending on the browser you target.

Paste Files

File pasting into the browser is handled via the paste event of the HTMLElement.

Paste Images

Read images programmatically from the user's clipboard.

Paste Text

Read text programmatically from the user's clipboard.