Block editor (Gutenberg) · Photos and images

Add or replace an image

Add a new photo to a page with the Image block, or swap an existing image for a better one, then add alt text and save your change.

  • About 4 minutes
  • 6 steps
  • Updated November 7, 2026

Before you start: Have the photo ready on your computer, or already uploaded to your Media Library.

Images make a page friendlier and easier to scan. You can add a new image anywhere on a page, or replace one that’s already there, without changing the rest of the layout.

Open the page

Go to Pages › All Pages, hover over the page title and click Edit.

Add an Image block

Click the blue + button at the top left (Block Inserter) and click Image. You can also click an empty line, type /image and press Enter.

The block inserter open with the Image block highlighted

Tip: You can also drag a photo from your computer straight onto an empty line in the page.

Choose your image

In the new block, click Upload to pick a photo from your computer, or Media Library to use one already on your website. In the Media Library, click the photo and then Select.

An empty Image block with the Upload, Media Library and Insert from URL buttons

Replace an existing image

To swap an image, click it once. In the toolbar above it, click Replace, then choose Open Media Library or Upload. The new image takes the place of the old one, with the same size and position.

The Replace menu open in the image toolbar, showing Open Media Library and Upload

Add alt text

With the image selected, look at the settings panel on the right. Type a short description of the image in Alternative text. Screen readers read this out to people who can’t see the image, and search engines use it too.

The block settings panel on the right with the Alternative text field highlighted

Tip: If you don’t see the panel on the right, click the Settings button (a square icon with a sidebar) at the top right.

Save your changes

Click Save at the top right (or Publish if the page is new).

If something looks different

  • The image is in a background or banner. It may be a Cover block (an image with text on top). Click it and use Replace in its toolbar the same way.
  • The Replace menu shows other wording, such as Media Library. Menu labels vary slightly between WordPress versions. Choose the option that opens your Media Library.
  • The upload fails or takes very long. The photo may be too large. Ask your web developer for the maximum size, or resize the photo before uploading.

Keep reading

  • Layout and sections

    Use patterns and synced patterns

    Insert ready-made layouts (patterns) in the WordPress block editor, and reuse your own sections with synced patterns that update everywhere at once.

    About 6 minutes

  • Layout and sections

    Check how a page looks on mobile

    Preview a page at tablet and mobile sizes in the WordPress block editor, and open a full preview to check your changes before visitors see them.

    About 3 minutes

  • Links and buttons

    Add buttons and links

    Link words to another page or website, and add a button with the Buttons block in the WordPress editor, so visitors can click through to it.

    About 4 minutes

All Block editor (Gutenberg) guides