Clipboard API Demo

Read and write the system clipboard with the asynchronous Clipboard API. The page must run in a secure context (HTTPS or localhost).

Plain text

Uses Clipboard.writeText() and Clipboard.readText().

Rich text

Writes a single ClipboardItem with text/html and text/plain representations.

${richPreview}

${status}

${capabilities}

${clipboardEvent}