Rename media filename during upload with unique hash.
As of April 2026, Media Auto Hash Rename is a WordPress file plugin with 60 active installations and a 5/5 rating from 1 reviews. It has been downloaded 3.1K+ times in total. Requires WordPress 4.0+ and PHP false+. Available on WordPress.org since 2019. Last updated 4 years ago — may have compatibility concerns. Top alternative: Theme Editor.
Media Auto Hash Rename will rename any file (specific files can be ignored by file extension) during upload, with unique, low collision hashes. Hash characters and length can be configured for even lower collision rate.
More information please visit my site.
This plugin provides no configuration GUI to make it more easier to maintain with the future WordPress updates.
Currently there’re 3 constants you can configure in your wp-config.php, I recommend WP-CLI for maintaining these constants.
MAHR_LENGTH: length of the random hashes, (default to 8), longer can help reduce collision. Hashes at the length of 8 can be collision-free at the scale of 50,000 images).MAHR_CHARS: Characters used in hashes, default to 0123456789abcdefghijklmnopqrstuvwxyz_, You can add more characters like upp…| WordPress | 4.0+ requiredTested up to 5.8.13 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.