Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Automatically Add Media Titles in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Images are an important part of a content rich website. Using proper titles and alternate text for images can make them SEO friendly. However if you upload a lot of images, then there is a good chance that you may sometimes forget to add proper title and alt text for your WordPress media files. In this article, we will show you how to automatically add media titles in WordPress.

How WordPress Handles Media Titles

WordPress automatically uses the filename as title for all media files you upload using the media uploader. WordPress leaves the alt text field blank for you to fill in. Not to mention that media title in WordPress is only used internally, and it is not used as the title parameter in the image tag. See our beginner’s guide on image alt text vs image title in WordPress.

Default WordPress media title field filled with image file name

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Automatically Formatting Media Titles in WordPress

First thing you need to do is install and activate the Format Media Titles plugin. Upon activation simply go to Settings » Format Media Titles page to configure the plugin.

Format media title settings

The plugin allows you to remove hypens and underscores from media file names. For example, if your media file name is fruit-basket.jpeg, then it would become fruit basket in your image title field. By default, the plugin will remove hyphens and underscore, but you can also use it to remove period, tide, and plus characters from file name.

Format Media Titles can also capitalize words in the title field. There are number of options available. You can capitalize all words or first word only. You can also use lower case or uppercase characters for all words.

Under the Misc. Options section, you can add your formatted media title to the alternate text, description, and caption fields. We will recommend you to check the alternate text field, this way even if you forget to add an alternate text for your image, this plugin will automatically use the formatted media title as the alt text.

Now whenever you upload a new image, Formatted Media Titles will automatically format the file name used in title to be readable and SEO friendly.

Title and Alt text fields automatically filled

Note that the plugin will still not use your formatted media title as the title parameter in the img tag. For that you need to follow the instructions in our tutorial on how to easily add title attribute to images in WordPress.

We hope this article helped you automatically add media titles in WordPress. You may also want to see our guide on speeding up your WordPress site by saving images optimized for web.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

12 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. ivan radisson says

    For those who noticed that WordPress changed the way media Titles was handled, worry no more, a fix is ready in the latest WordPress 4.7 :

    Unexpected change to media title behavior in WP 4.6.1

  3. Junaid Shafiq says

    This plugin works perfectly. Thanks a lot for this valuable article, I really enjoyed it!

  4. John Abay says

    It really help in my site Web Design, Thanks for sharing. very useful resources to start learning with fundamentals of WordPress. it is very attractive Web Design Ideas.

  5. by.fire says

    Hi,

    I’m really interested in using this plug in but when I downloaded it I had a message saying that it will not work with my version of WordPress (4.2.4). Any suggestions?
    Many thanks

  6. Janice Ridley-Lee says

    This site is fantastic. It’s got everything you need to know about WordPress and there is not only a tonne of information about WP but has info you can use even if you are not a WP user. The people who run this web site deserve everything positive as they obviously work very hard to bring us lots and lots of freebies. Thanks. Janice.

  7. Alex says

    Hi

    Does it still work after you’ve de-activated it?

    I.e. can it be used to fix up an old image library and then de-activated?

    Regards

    Alex

  8. Kate says

    Interesting plug in. I have many thousands of images which require a scan, but unfortunately, this plug in only addresses new uploads after installation. There doesn’t appear to be a batch edit function as the creator indicates he doesn’t yet have the time to add this function to a free plug in. So, developer beware — new images only, are enhanced by this tool.

    • LIZ says

      I send this. I love what it does with new uploads, but I really need something to modify images I already have.

  9. Sallie Goetsch @salliegoetsch says

    This seems like an improvement over the default titles, but for proper accessibility, the ALT tag should actually include a word like “photo” or “illustration” and then a description of the image, not just its title.

Leave a Reply to LIZ Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WPBeginner Assistant
How can I help you?

By chatting, you consent to this chat being stored according to our privacy policy and your email will be added to receive weekly WordPress tutorials from WPBeginner.