The fastest way to swap an image in Illustrator
To replace an image in Illustrator, select the image on your canvas, then go to Object > Replace Image and choose the new file. Illustrator will swap the old image for the new one while keeping the same size, position, and any effects you applied. The image stays linked to its original location on your computer unless you embedded it.
This method works whether your image is a photograph, a graphic, or any raster file (JPG, PNG, TIFF, and so on). The Replace Image command is faster than deleting and re-placing because you do not have to reposition or resize anything.
Key Takeaways
- Select the image you want to replace, then use Object > Replace Image to swap it for a new file without losing size or position.
- Linked images (the default) update when you change the source file on your computer, but embedded images do not.
- If Replace Image is grayed out, you have selected a vector object or text instead of an image.
- You can also drag a new image directly onto a selected image to replace it, though this method may change the size.
Using the Replace Image menu command
Open your Illustrator document and click once on the image you want to replace. Make sure you are selecting the image itself, not a group or frame around it. If the image is inside a group, double-click to enter the group first, then select the image.
With the image selected, go to the menu bar and click Object. A dropdown menu will appear. Look for Replace Image and click it. A file browser window will open. Navigate to the new image file you want to use, select it, and click Open. Illustrator will replace the old image when ready while keeping all the original placement and scaling intact.
If Replace Image is grayed out (disabled), you have likely selected something other than an image — such as a vector shape, text, or a group. Click elsewhere on the canvas to deselect, then try again with the image itself.
Linked versus embedded images and what happens when you replace
By default, images in Illustrator are linked, meaning Illustrator stores a reference to the file on your computer rather than storing the image data inside the document. When you replace a linked image, Illustrator points to the new file instead. If you later edit the source file in Photoshop or another program, the image in Illustrator will update automatically the next time you open the document.
If you have embedded an image (by going to Object > Image > Embed), the image data lives inside the Illustrator file itself. Replacing an embedded image still works the same way — the old image is removed and the new one takes its place — but the new image will be linked by default unless you embed it again afterward.
To check whether an image is linked or embedded, select it and look at the Links panel (Window > Links). Linked images appear in the list; embedded images do not. If you want the replacement to be embedded as well, select the new image after replacing it, then go to Object > Image > Embed.
Replacing an image by dragging a new file onto it
You can also replace an image by dragging a file from your computer directly onto the selected image in Illustrator. Select the image first, then open your file explorer (Windows) or Finder (Mac) in a separate window. Drag the new image file from the file browser and drop it onto the selected image in Illustrator.
This method works, but it can sometimes change the image size or position slightly, so you may need to resize or move it afterward. The menu command (Object > Replace Image) is more reliable if you want to preserve the exact dimensions and placement.
What to do if the new image is a different size or color space
When you replace an image with one that has different dimensions, Illustrator keeps the old image's bounding box (the frame it occupies). If the new image is smaller, it will appear centered inside the old frame with empty space around it. If the new image is larger, it will be scaled down to fit the old frame. You can resize the image afterward by selecting it and dragging a corner handle, or by using the Transform panel.
If the new image uses a different color space (for example, you replace an RGB image with a CMYK image), Illustrator will not automatically convert it. The image will display in its native color space. If you are preparing a document for print and need all images in CMYK, you will need to convert the image in Photoshop before replacing it, or convert it in Illustrator after replacing by going to Image > Convert to CMYK (if that option is available in your version).
Updating links when you move or rename the source file
If you move or rename the source file of a linked image after placing it in Illustrator, the link will break. Illustrator will show a warning icon next to the image in the Links panel. To fix this, go to Window > Links, find the broken link in the panel, click the small icon at the bottom of the panel that looks like a folder, and navigate to the new location of the file. Illustrator will relink the image.
To avoid broken links, keep your image files in a folder that does not move, or use the Package command (File > Package) to collect all linked files into a single folder with your document. This is especially useful if you are handing off the file to someone else or moving it to a different computer.
Replacing multiple images at once
If you need to replace several images in your document, you can do it one at a time using the Replace Image command. There is no built-in batch replace feature in Illustrator. Select each image, go to Object > Replace Image, and choose the new file. This is straightforward if you have only a few images, but can be time-consuming for documents with many images.
If you have a large number of images to replace, consider using a script or action to automate the process, though this requires some technical knowledge. For most users, replacing images one by one is the practical approach.
Frequently Asked Questions
Can I undo a replace if I chose the wrong image?
Yes. Press Ctrl+Z (Windows) or Command+Z (Mac) when ready after replacing the image to undo the action. Illustrator will restore the original image and you can try again.
Does replacing an image change the effects or transparency I applied to it?
No. Any effects, opacity settings, blend modes, or other properties you applied to the original image will remain on the new image. Only the image content itself changes.
What file formats can I use to replace an image?
You can replace with any raster format Illustrator supports: JPG, PNG, TIFF, GIF, PSD, BMP, and others. You cannot replace a raster image with a vector file (like SVG or PDF) using the Replace Image command.
If I replace a linked image, do I need to update the links panel?
No. The Links panel updates automatically when you replace an image. The new file path will appear in the panel, and the link status will show as up to date.
Can I replace an image that is inside a clipping mask?
Yes. Double-click the clipping mask to enter it, select the image inside, then use Object > Replace Image as normal. The mask shape will remain unchanged.