--- url: "https://web.dev/articles/clipboard" titulek: "Clipboard patterns | web.dev" h1: "" popis: "A collection of common patterns for dealing with the clipboard." jazyk: "en" kanonicka: "https://web.dev/articles/clipboard" drobecky: ["Home", "Articles", "Clipboard"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 22:29:55" znaku: 895 slov: 105 kodovani: "iso-8859-2" sha256: "88ae3e03fdc6146a3bae9859f9001531bdf8613b6cefe63266691d283d9dbcba" --- Stay organized with collections Save and categorize content based on your preferences. Clipboard patterns A collection of common patterns for dealing with the clipboard. [Copy images](https://web.dev/articles/clipboard/copy-images) Many modern browsers support copying images to the clipboard in the formats PNG and SVG. [Copy text](https://web.dev/articles/clipboard/copy-text) 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](https://web.dev/articles/clipboard/paste-files) Pasting files into the browser consists of using the paste event of the HTMLElement. [Paste images](https://web.dev/articles/clipboard/paste-images) Read images from the user's clipboard programmatically. [Paste text](https://web.dev/articles/clipboard/paste-text) Read text from the user's clipboard programmatically.