Skip to content

Clipboard API

The Clipboard API provides asynchronous access to the system clipboard for reading and writing text and other data.

  • Writing — Copying text and data to the clipboard
  • Reading — Pasting text and data from the clipboard
  • Permissions — Security requirements for clipboard access

navigator.clipboard.writeText() for copying, readText() for pasting. Requires HTTPS and user interaction. Async API returns Promises.