Knowledgebase

How to use the WordPress Media Library (upload images, alt text, delete)

The WordPress Media Library keeps every image, PDF and video you upload to your website. This guide shows you how to upload files, write alt text for images (important for SEO and accessibility), copy a file link and delete files you no longer need.

1) Open the Media Library

Go to Media → Add Media File (1), or open Media → Library and click Add Media File (2).

Media Library and Add Media File

2) Upload files

Click Select Files (1) or drag files from your computer into the box (2). You can upload several files at once.

Select Files or drop files to upload

After the upload you will see the file (1) with links to edit it or copy its URL.

The uploaded file

3) Alt text, title and link

In Media → Library click any image to open its details:

  1. Alternative Text: a short description of the image. Google reads it and screen readers say it aloud. Example: "How to choose a domain name - EgWeb blog".
  2. Title: for your own reference inside WordPress.
  3. Copy URL to clipboard: the direct link of the file, useful to share a PDF.
  4. Delete permanently: removes the file. Make sure it is not used in any page first.

Attachment details: alt text, title, copy URL, delete

Image tips for a fast website

  • Resize photos before uploading: 1200–1600 px wide is enough for most websites.
  • Compress them (for example with squoosh.app) or use the WebP format; keep each image under about 300 KB when you can.
  • Use clear file names such as egweb-cotton-tshirt-navy.jpg instead of IMG_2025.jpg.
  • More speed tips: How to speed up your WordPress website.

Common problems

  • "exceeds the maximum upload size" → make the file smaller, or ask support to raise the PHP upload limit.
  • "Sorry, you are not allowed to upload this file type" → WordPress blocks some file types for security (for example .exe and, by default, .svg).
  • Images look blurry → the original was too small; upload a larger version.

Frequently asked questions

Does deleting a post delete its images?

No. Images stay in the Media Library until you delete them there.

Where are the files stored on the server?

In wp-content/uploads, in folders by year and month. They are included in your hosting backups.

How do I use an image as a product photo?

How to add a new product in WooCommerce.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • WordPress, media, images, alt text

Was this answer helpful?

0 Users Found This Useful