Guilds AI / Blog

,

How to Paste an Image Into Claude Code: 3 Simple Methods

Laptop showing an illustrative Claude Code conversation with an attached mountain landscape image.

To paste an image into Claude Code, copy the image and press Ctrl+V in the interactive prompt on macOS or Linux, or Alt+V on Windows and WSL. If clipboard paste fails, drag a saved image into the window or provide its file path. The best method depends on your terminal and where Claude Code is running.

1. Paste a screenshot from your clipboard

Capture an image directly to the clipboard, place the cursor in the Claude Code interactive prompt, and use the image-paste shortcut for your operating system. Anthropic’s interactive-mode documentation distinguishes these shortcuts from the terminal application’s ordinary text-paste command.

EnvironmentShortcut inside Claude Code
macOSCtrl+V; Cmd+V also supported in iTerm2
LinuxCtrl+V
WindowsAlt+V
WSLAlt+V or Ctrl+V; try Alt+V if Ctrl+V is intercepted

On macOS, Command-Control-Shift-4 copies a selected screen region to the clipboard instead of saving it. On Windows, Windows-Shift-S opens the screen capture interface. On Linux, choose the clipboard option in your desktop’s screenshot utility. Verify that the clipboard contains the image rather than its filename or unrelated text.

The interactive prompt can show a numbered image placeholder such as [Image #1]. Add a clear question beside that placeholder and submit the message. A placeholder indicates that the client recognized an attachment; still check that the answer refers to the intended image.

2. Drag and drop a saved image

Save the image locally, open its containing folder, and drag the file into the Claude Code window. Depending on the terminal or editor, the drop may insert the file path instead of an attachment. If a path appears, you can still ask Claude to inspect that file.

For an editor-based workflow, try the official Claude Code panel rather than relying on the integrated terminal’s clipboard behavior. See our Claude Code in VS Code guide for installation and project setup.

3. Provide an image file path

When clipboard paste is unreliable, save the screenshot as a PNG or JPEG in an authorized location that the Claude Code process can read. Type the path in your prompt and describe the task. A relative path is interpreted in the context of the working directory; an absolute path can help avoid ambiguity.

Inspect ./screenshots/login-error.png. Describe the visible error message and suggest which files I should inspect. Do not edit anything yet.

On WSL, a Windows drive may be available through a Linux mount such as /mnt/c. On a remote SSH session, the remote process cannot directly read the local machine’s file or clipboard. Transfer only the permitted image through your approved connection, then reference its remote path. Check access permissions rather than broadening them unnecessarily.

Use our Claude Code terminal guide if you need help launching the CLI from the correct project directory.

Why image paste does not work

Nothing appears after pasting: The terminal may intercept the shortcut and send only clipboard text. Focus the Claude Code prompt and use the documented binding for your OS. Fall back to a saved file if the shortcut is unavailable.

No image found in clipboard: Copy a fresh screenshot and ensure it is stored as image data. Clipboard handling differs across terminal emulators, Linux desktop environments and Windows/WSL versions. Check your CLI version and update through the supported installation method when appropriate.

The path cannot be read: Check that it exists in the filesystem visible to Claude Code, has the correct spelling and is accessible under current permissions. Do not grant access to a whole home directory just to share one file.

The image is recognized but details are unclear: Crop to the relevant area, increase readable text size, or provide the error message as text alongside the screenshot. Image processing may resize large inputs, and small text can be misinterpreted.

If the issue occurs only inside an integrated terminal or remote session, compare it with an approved local terminal setup. The official documentation describes the supported shortcuts, but individual environments can still behave differently.

How to use images for coding tasks

A screenshot can show layout problems that are hard to describe in text. For example, you could provide a cropped, fictional login-page mockup and ask the assistant to identify mismatched spacing, typography and button alignment. Specify which component is in scope and request a plan before any changes.

Compare the first image (expected layout) with the second (current layout). List the visible differences. Identify the relevant CSS selectors and propose a minimal fix. Do not change unrelated components.

For error screenshots, ask for a transcription of the visible message, then compare it with the actual logs before accepting a diagnosis. For diagrams, verify labels and relationships independently. Visual analysis can help generate hypotheses but does not replace testing or code review.

Review screenshots for access tokens, customer records, internal URLs and other confidential material before uploading them. Share the smallest useful portion. Our AI API data security guide explains broader controls for sending sensitive context.

Frequently asked questions

Can I paste multiple images into Claude Code? Yes, the documented workflow supports multiple images in a conversation. Identify which image corresponds to each part of your question.

Why does Command-V not work on my Mac? Many terminals handle it as ordinary text paste. Use Control-V in the Claude Code prompt; iTerm2 also supports Command-V.

Can I paste an image in Windows or WSL? The current documentation lists Alt-V for both. WSL also supports Control-V when the terminal passes it through. If neither works, provide a saved file path.

Does pasting an image automatically modify my code? No. The attachment supplies context; edits depend on your instructions and the tool’s permissions. Review any proposed changes.

Were these shortcuts tested on every platform? No. This guide was checked against Anthropic’s interactive-mode and common-workflows documentation on December 4, 2026. No authenticated CLI or physical clipboard tests were performed.