When choosing web hosting, you probably look at available disk space, memory, and processor performance. Another technical limit deserves your attention: the inode count. It determines how many files and directories your hosting account can store, regardless of their size.
A WordPress site with a large media library, many plugins, and a caching system can reach its hosting limits while using only a fraction of its available disk space.
In this article
Inodes limit the number of files, regardless of their size
On a Linux file system such as ext4, every file and directory has an inode (index node). This structure stores the metadata the system needs to identify and manage files: their size, permissions, owner, timestamps, and the location of their data on disk. The file name is associated with its inode number in the directory that contains it.
An empty text file uses as many inodes as a 10 GB video. They take up very different amounts of disk space, but each needs one inode to exist in the file system.
| Stored content | Combined file size | Inodes used |
|---|---|---|
| One 10 GB video | 10 GB | 1 |
| 1,000 documents of 1 MB | 1 GB | 1,000 |
| 10,000 images of 100 KB | 1 GB | 10,000 |
| 100,000 text files of 1 KB | 100 MB | 100,000 |
| 500,000 empty files | 0 bytes of content | 500,000 |
On ext4, the number of inodes is set when the file system is formatted, based on its capacity and the configured ratio. When all inodes are in use, Linux refuses to create new files even if storage blocks are still available. Other file systems, such as XFS, allocate inodes dynamically.
Even unlimited web hosting plans set inode quotas
Shared hosting providers divide a server’s resources among several customers. Every operation on a file uses the storage system. Handling hundreds of thousands of small files requires a different workload from handling a few large files.
To manage this resource use, hosting providers set an inode quota for each account, separately from the capacity of the server’s file system. The limit appears in plan specifications or in the provider’s terms of service.
| Hosting provider | Plan | Limit |
|---|---|---|
| Hostinger | Web Single | 200,000 |
| Hostinger | Web Premium | 400,000 |
| Hostinger | Web Business | 600,000 |
| Hostinger | Cloud Startup | 2,000,000 |
| SiteGround | StartUp | 200,000 |
| SiteGround | GrowBig | 400,000 |
| SiteGround | GoGeek | 600,000 |
| IONOS | WordPress hosting | 262,144 |
| o2switch | Web hosting | 500,000 |
If you host several WordPress sites under one account, check whether each site has a separate quota or whether all installations share the same limit.
WordPress multiplies the number of files on your hosting account
The number of files on a WordPress site grows much faster than its number of published posts and pages. WordPress core, themes, and plugins contain thousands of PHP, JavaScript, CSS, and translation files. Files generated automatically while the site runs add to that total.
Every image uploaded to WordPress generates several files
When you upload an image to the media library, WordPress creates several sizes so it can display the image in different places on your site.
Themes and plugins such as WooCommerce register their own image sizes too. One image in your media library can therefore correspond to several physical files in wp-content/uploads.
| Images uploaded | Sizes per image | Total files |
|---|---|---|
| 100 | 6 | 700 |
| 1,000 | 6 | 7,000 |
| 5,000 | 6 | 35,000 |
| 10,000 | 10 | 110,000 |
| 20,000 | 10 | 220,000 |
On a site with a large product catalog or several years of posts, the media library can use a significant share of the inode quota. Converting images to WebP reduces their file size, but does not reduce inode use if the number of files stays the same.
Some optimization plugins also keep the original images alongside the converted versions, which further increases the number of files on your hosting account.
Caching plugins generate files in the background
A WordPress caching plugin saves the HTML generated by WordPress so visitors can be served a page without running the full PHP process on every visit. Depending on its settings, the cache may store several versions of a page for different languages, URL parameters, or devices. The number of files can grow with visits and cache preloading, even when you publish nothing new.
Backups and staging sites duplicate files
A staging site is a copy of your WordPress installation. If your site uses 100,000 inodes, a full copy adds roughly another 100,000 to your usage. Old installations left behind after a redesign or WordPress site migration also contribute to this buildup.
A ZIP archive containing 100,000 files normally uses one inode while it remains compressed. Once it is extracted on the server, each file and directory inside it uses its own inode again.
What happens when the inode limit is reached?
When your hosting account reaches its quota and the provider enforces it strictly, the server refuses to create new files and directories. WordPress can still use its existing files and display some pages, but any operation that needs to create a file may fail.
| Operation | Consequence |
|---|---|
| Upload an image | Upload fails or image thumbnails are not generated |
| Update WordPress | Required files cannot be created |
| Install a plugin | Download or extraction fails |
| Generate the cache | New cached pages cannot be saved |
| Restore a backup | Extraction stops or the installation is incomplete |
| Transfer a file over FTP | File creation is refused |
The first problems may appear when you upload an image, install a plugin, or update WordPress. To install an archive, the server must first create it, then extract it to a temporary directory before installing its files.
How to reduce your site’s inode count
Reducing inode use means deleting files you no longer need. Unlike cleanup intended to free disk space, deleting a single file several gigabytes in size normally frees just one inode. Focus instead on directories containing large numbers of small files.
On Linux, deleting a file that a program is still using does not release its inode until the last open reference is closed, provided no hard links remain.
Start by clearing the cache with your WordPress plugin’s tools. Then check whether old staging sites, abandoned installations, or extracted backups are still using space on your hosting account. Unused plugins and themes also add unnecessary files. Removing them frees inodes and helps secure your WordPress site.
| Cleanup task | Effect on inodes |
|---|---|
| Clear cached files | Small reduction |
| Delete an old staging site | Large reduction |
| Remove unused plugins | Varies |
| Delete unused image sizes | Reduction depends on the number of files deleted |
| Clean up locally stored email | Reduces usage if email shares the quota |
| Compress existing images | No reduction if the number of files stays the same |
| Optimize the WordPress database | No significant direct reduction |
Limit the image sizes generated by WordPress
If your media library accounts for a large part of your inode usage, check the image sizes registered by your theme and plugins. WordPress provides some settings under Settings, then Media. WP-CLI can show a more complete list with this command:
wp media image-size
After a redesign or theme change, old image sizes may remain in the uploads directory even though WordPress no longer registers them. This command regenerates images and deletes thumbnails for sizes that are no longer known:
wp media regenerate --delete-unknown --yes
Before running the command, back up your media library to external storage and check that the old image sizes are not still referenced directly in posts or by external apps. If your quota is already full, free enough inodes first so the images can be regenerated.
Avoid deploying development-only dependencies
If you build a WordPress theme with npm, Vite, or another build tool, the node_modules directory contains thousands of files used only to compile the site’s assets.
Compiling CSS and JavaScript in your development environment before deploying them can greatly reduce the number of files on the production server. Keep the PHP dependencies your theme or Composer-installed plugins need to run.
Should you change hosting when the inode quota is too low?
If you have removed unnecessary files and images from your server but still do not have enough inodes, you will need to upgrade your plan or switch providers to keep developing your website.
When comparing WordPress web hosting plans, check the inode quota for each one. More storage does not always mean that your account can store more files.