Support pasting inline base64 images from text/html clipboard format
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When copying rich text content (e.g. from a web-based rich text editor) that contains inline images, the clipboard typically contains both text/plain and text/html formats. The text/html format includes images as base64-encoded data URIs, e.g.:
<img src="data:image/png;base64,iVBORw0KGgo...">
Current behavior: CTRL+V in Claude Code pastes only the plain text. Images embedded in text/html are silently ignored.
Proposed Solution
Expected behavior: Claude Code reads the text/html clipboard format, extracts any inline base64 images, and adds them as file attachments — the same way it handles images pasted directly from the clipboard.
Why this matters: Applications like Microsoft Word and Outlook already handle this correctly — pasting the same clipboard content into Word transfers both the text and the images. Claude Code is a natural target for pasting rich content (e.g. copying a message with screenshots to ask Claude for help), but images are lost in the process.
Workaround: Users must attach images manually via the "+" button after pasting the text.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗