> Documentation index: https://web.dev/articles/llms.txt

![](http://web.dev/static/articles/clipboard/hero.png)

### Clipboard patterns

A collection of common patterns for dealing with the clipboard.

### [Copy images](http://web.dev/articles/clipboard/copy-images.md.txt)

Many modern browsers support copying images to the clipboard in the formats PNG and SVG.

### [Copy text](http://web.dev/articles/clipboard/copy-text.md.txt)

How do I copy text on the web? There's an old way and a new way. It depends on which browser is used.

### [Paste files](http://web.dev/articles/clipboard/paste-files.md.txt)

Pasting files into the browser consists of using the paste event of the HTMLElement.

### [Paste images](http://web.dev/articles/clipboard/paste-images.md.txt)

Read images from the user's clipboard programmatically.

### [Paste text](http://web.dev/articles/clipboard/paste-text.md.txt)

Read text from the user's clipboard programmatically.