claude-code - 💡(How to fix) Fix Support pasting inline base64 images from text/html clipboard format [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57795Fetched 2026-05-11 03:25:12
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Fix Action

Fix / Workaround

Workaround: Users must attach images manually via the "+" button after pasting the text.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Support pasting inline base64 images from text/html clipboard format [1 comments, 2 participants]