Themewaves
Guide

Where Does WordPress Store Images? File Paths Explained

Learn where WordPress stores images, how uploads folders and database records work, how image sizes are made, and how to manage files safely.

Editorial Team 7 min read
Where Does WordPress Store Images? File Paths Explained

Where WordPress Stores Images

WordPress stores uploaded images in the wp-content/uploads folder. This folder sits on your web server. It holds files added through the Media Library, block editor, and other upload tools.

The full path often looks like /public_html/wp-content/uploads/2026/08/photo.jpg. Your host may use a different root folder. The key part is still wp-content/uploads.

The public image URL follows a similar pattern. For example, it may look like https://example.com/wp-content/uploads/2026/08/photo.jpg. WordPress builds this URL from your site address and upload settings.

That answers the main question. Where does WordPress store images? It stores the files on the server, not inside the page editor itself.

How WordPress Organizes Uploaded Images

By default, WordPress sorts uploads into year and month folders. An image uploaded in August 2026 goes into wp-content/uploads/2026/08. This system keeps large media libraries easier to browse.

WordPress keeps the original file name in most cases. It may change the name when a file already exists. Spaces and special marks may also become dashes in the final file name.

Each upload can create several files. A photo called garden.jpg may also produce files such as garden-150x150.jpg and garden-768x512.jpg. These files serve different display needs.

  • Original file: The full file uploaded by the site owner
  • Thumbnail: A small version for lists and previews
  • Medium size: A useful size for posts and pages
  • Large size: A wider file for bigger content areas
  • Custom sizes: Files made by themes or plugins

The exact files depend on your theme and plugins. A busy site can create ten or more versions from one upload.

Organized digital folders showing image files sorted by upload year and month
Year and month image folders

Finding the Uploads Folder on Your Server

You can reach the uploads folder in several ways. Your host may offer a file manager in its control panel. You can also use FTP access with a tool such as FileZilla.

Open the folder that contains WordPress files. Look for wp-admin, wp-includes, and wp-content. Then open wp-content and choose uploads.

Inside, you should see folders named by year. Open a year folder to see month folders from 01 through 12. Empty month folders may not exist until you upload a file.

  1. Sign in to your hosting file manager or FTP tool.
  2. Open the main WordPress install folder.
  3. Open wp-content, then open uploads.
  4. Choose the year and month that match the upload date.
  5. Check the file name before you move or delete anything.

Do not rename files without a plan. Existing posts may still point to the old URL. A renamed file can cause broken links across your site.

Web server directory with the WordPress uploads folder open for file access
Accessing the uploads folder

What the WordPress Database Stores

The file itself lives in the uploads folder. WordPress also stores details about that file in its database. This split helps WordPress show media inside posts, pages, and the Media Library.

The main record sits in the wp_posts table. WordPress treats an uploaded file as an attachment post. Its record includes the file name, upload date, status, and attachment type.

Extra details sit in the wp_postmeta table. These details can include the file path, image width, image height, and other attachment data. The exact fields can vary by WordPress version.

The WordPress database guide explains how core data tables support site content. It is a safer starting point than editing tables from a random tutorial.

LocationWhat it holds
wp-content/uploadsImage files and generated size files
wp_postsThe attachment record for each upload
wp_postmetaExtra file and image details

This also explains where WordPress stores its data. Site data lives across files and database tables. Images need both parts to work well.

WordPress database concept linking media records with stored image files
Media records and image files

WordPress stores pages in the wp_posts table. A page uses the post type value page. Posts use a different value, while uploaded files use attachment.

Page content is saved in the table's content field. That content may contain an image URL or an attachment reference. The actual image still lives in the uploads folder.

So where does WordPress store pages? It stores page records in the database, not as separate HTML files. Your theme reads those records and builds the page when a visitor opens it.

Deleting an image file by FTP does not remove its database record. The Media Library may still show the item. Posts may also keep a link to the missing file.

For a clean removal, delete the image through the Media Library first. WordPress can then remove its file and related record. If you already deleted the file by hand, remove the orphaned attachment with care.

Responsive image sizes arranged from small thumbnail to large landscape file
Different image sizes in WordPress

Managing Image Sizes and Storage Use

WordPress creates image sizes to fit different layouts. A small card should not load a 4,000-pixel photo. Smaller files can cut load time and save storage space.

You can view the main size settings under Settings, then Media. Common defaults include thumbnail, medium, and large sizes. Your theme may add more sizes that do not appear on this screen.

Set sizes based on your real layout. For example, a blog column may need an image width of 900 pixels. A sidebar may need only 300 pixels.

  • Upload images close to the largest size your site needs.
  • Use JPEG for many photos and PNG for files with sharp transparency.
  • Use modern formats when your host and plugins support them.
  • Review unused size files before running a cleanup tool.
  • Keep a backup before removing old files or database rows.

Changing size settings affects new uploads. It does not rebuild old files. A thumbnail rebuild tool can create new sizes for existing media.

Do not delete size files at random. A theme or plugin may rely on them. Check your site after any storage cleanup.

Changing the Default Upload Folder Setup

WordPress includes an admin setting for date-based folders. Go to Settings > Media. Clear the option that says to organize uploads into month and year folders.

New uploads will then sit in the main uploads folder. Existing files usually stay in their old folders. This setting does not move the files already on your server.

The WordPress upload directory reference shows how core builds upload paths and URLs. Developers can also change the upload path with code or a trusted plugin.

Changing this setup can affect links, backups, and site moves. Make the change before a new project starts when possible. Test one upload before adding many files.

For most sites, the default system works well. Year and month folders give you a clear structure. They also reduce the chance of one huge folder becoming hard to manage.

A Safe Way to Manage WordPress Images

Use the Media Library for normal uploads and deletes. Use FTP or a file manager when you need to inspect files. Use phpMyAdmin only when you understand the database record you plan to change.

Back up both the files and database before major changes. A file backup alone cannot restore attachment records. A database backup alone cannot restore missing image files.

When an image is missing, check both sides. Confirm that the file exists under the expected year and month path. Then check that the attachment record and page link still point to the same name.

This simple check finds many broken media problems. It also helps during site moves, domain changes, and storage cleanup.

Frequently asked questions

Where does WordPress store images on the server?
WordPress stores uploaded images in wp-content/uploads on the web server. The files usually sit inside year and month subfolders.
How do I access the WordPress uploads folder?
Open wp-content, then uploads, in your host file manager or FTP tool. Choose the year and month folder that match the upload date.
Where does WordPress store image data?
WordPress stores attachment records in wp_posts. Extra image details sit in wp_postmeta, while the file stays in the uploads folder.
Where does WordPress store pages?
WordPress stores pages as records in the wp_posts table. Pages use the post type value page, not a separate HTML file.
How do I properly delete images from WordPress?
Delete images through the Media Library when possible. Manual file deletion can leave database records and broken links behind.
Can I change how WordPress organizes image uploads?
Go to Settings, then Media, and clear the date-based folder option. This affects new uploads, not files already stored.
wordpress media storageuploads folder structureimage URL structurewordpress database tablesmanage image sizesFTP access wordpressmedia library files