Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Explainers · Explainer

What Is WordPress Gravatar? Explained

What Is WordPress Gravatar? Explained

Short answer

Gravatar is a free service that links a profile picture to your email address. WordPress uses it to show that picture beside your comments, posts and profile, with no plugin needed. You control avatars under Settings > Discussion.

Key takeaways

  • Gravatar links one profile picture to your email address across many sites.
  • WordPress supports Gravatar in core, with no plugin needed.
  • You change your picture on Gravatar, not in the WordPress Users screen.
  • Settings > Discussion controls avatar display, rating and default image.
  • Gravatar sends data to an outside service, so mention it in your privacy policy.
  • Local avatar plugins can replace Gravatar entirely.

What is Gravatar in WordPress?

Gravatar is a free service that links a profile picture to your email address, and WordPress uses it to show that picture next to your comments, posts and user profile.

The name stands for Globally Recognized Avatar. You upload an image once to Gravatar, and any site that supports it can show your picture whenever you use the same email address.

WordPress has supported Gravatar in core for many years. You do not need a plugin. If you leave a comment on a WordPress blog using an email linked to a Gravatar, your picture appears beside the comment automatically.

Gravatar is run by Automattic, the company behind WordPress.com. The WordPress documentation has a page on using Gravatars that explains the basics.

How does Gravatar work behind the scenes?

WordPress turns the email address into a hash, sends that hash to Gravatar's servers, and Gravatar returns the image linked to that email, or a default image if none exists.

Here is the flow in plain terms:

  1. A visitor leaves a comment with their email address.
  2. WordPress creates a hash of the email. A hash is a scrambled string that stands in for the address.
  3. WordPress builds an image URL pointing to Gravatar with that hash.
  4. The visitor's browser loads the image from Gravatar.
  5. Gravatar returns the user's picture, or a default image.

The email itself is not printed on the page. Only the hash appears in the image address.

Developers can call this process directly. The get_avatar function outputs the avatar image tag, and themes use it in comment lists and author boxes.

Where does WordPress show Gravatars?

WordPress shows Gravatars in comment lists, the admin toolbar, the Users screen, author boxes in many themes, and the comment moderation screens.

Common places you will see them:

LocationWhat it shows
Comments on postsThe commenter's picture
Admin toolbarYour own picture in the top right
Users screenA small picture beside each user
Profile pageYour picture with a link to change it on Gravatar
Author boxesThe post author's picture, if the theme supports it
Comment moderationPictures beside pending comments

Block themes show avatars through blocks such as Avatar and the comment template blocks. Classic themes call the avatar function in their template files.

How do you change your Gravatar picture?

Sign in to Gravatar with the email address you use on WordPress, upload a new image, assign it to that email, and wait a few minutes for sites to pick up the change.

WordPress does not let you upload a profile picture in the Users screen by default. The picture comes from Gravatar, so you change it there.

  1. Go to the Gravatar website and sign in or create an account.
  2. Add the email address you use on your WordPress site, if it is not your main one.
  3. Upload an image and crop it.
  4. Assign the image to the right email address.
  5. Choose a rating, such as G for general audiences.
  6. Wait a few minutes, then reload your WordPress site.

Our guide on changing your WordPress profile picture covers this along with plugins that let you upload a local picture instead.

Browser and site caches can show the old image for a while. Clear your cache if the new picture does not appear.

What avatar settings does WordPress offer?

Under Settings > Discussion, WordPress lets you turn avatars on or off, set a maximum content rating, and choose the default image for people without a Gravatar.

Scroll to the Avatars section of the Discussion settings page. You will find three groups of options.

Avatar display. A checkbox for Show Avatars. Untick it to hide all avatars across the site.

Maximum rating. Gravatar users rate their own images. You choose the highest rating your site will show:

RatingMeaning
GSuitable for all audiences
PGMay be mildly offensive
RMay contain adult themes
XExplicit content

Most sites should leave this at G.

Default avatar. The image shown when an email has no Gravatar. Options include Mystery Person, Blank, the Gravatar logo, and generated patterns such as Identicon, Wavatar, MonsterID and Retro. Generated patterns give each commenter a unique image based on their email hash.

Our guide to turning on comments covers the other settings on this screen.

Is Gravatar safe for privacy?

Gravatar is widely used, but it sends visitor data to an outside service and the email hash can sometimes be matched to an address, so privacy-focused sites often limit or replace it.

There are two main concerns:

  • Third-party requests. Every page with avatars makes visitors' browsers contact Gravatar's servers. That shares their IP address with an outside company.
  • Email hashes. A hash is not the same as encryption. Researchers have shown that common email addresses can be guessed by hashing lists of addresses and comparing them. Wordfence wrote about this in its Gravatar advisory.

WordPress adds a note about Gravatar to its suggested privacy policy text. If you keep Gravatar on, mention it in your privacy policy. This is general information, not legal advice, so check your own obligations.

Ways to reduce the risk:

  • Turn off avatars in Settings > Discussion if you do not need them.
  • Use a plugin that stores avatars locally or caches them on your own server.
  • Use blank or locally generated default avatars.

Our guide on making WooCommerce GDPR compliant covers related privacy steps for stores.

Does Gravatar slow down WordPress?

Gravatar adds extra image requests to pages with comments, which can slow pages a little, especially busy comment sections, but the impact is small on most sites.

Each avatar is a separate image from an outside domain. A post with 100 comments may load many avatar images.

Ways to keep it fast:

  • Lazy load images. WordPress adds lazy loading to images by default, so avatars below the fold load later.
  • Paginate comments. Split long threads into pages under Settings > Discussion.
  • Cache avatars locally. Some performance plugins can host Gravatar images on your own server.
  • Turn avatars off if your design does not need them.

For a wider look at speed, see our guide on what a caching plugin does.

Can you use a local avatar instead of Gravatar?

Yes, plugins can let users upload a profile picture to your own media library, and WordPress will show that instead of the Gravatar image.

This suits membership sites, intranets and sites that want to avoid outside requests. Local avatar plugins hook into WordPress's avatar functions, so themes keep working without changes.

Developers can also filter avatars in code. The pre_get_avatar_data filter lets you replace the avatar URL with your own. Our guide to WordPress hooks explains how filters work.

What are common Gravatar problems in WordPress?

The most common problems are a picture not updating, the wrong picture showing, and no avatars appearing at all; each usually has a simple cause.

ProblemLikely causeFix
Old picture still showsCachingClear site and browser cache
Default image instead of yoursEmail does not matchUse the same email on Gravatar and WordPress
No avatars anywhereAvatars turned offEnable Show Avatars in Settings > Discussion
Theme shows no avatarTheme does not call itAdd an avatar block or check theme settings
Explicit image hiddenRating too highChange your image rating on Gravatar

If comments themselves are missing, the issue is wider than avatars. Our guide on fixing comments not showing covers that.

Do you need Gravatar on your WordPress site?

You do not need Gravatar, but it is a simple way to give commenters and authors pictures; keep it if you run an active blog and turn it off if privacy or speed matter more.

A quick way to decide:

  • Keep Gravatar for community blogs, multi-author sites and sites where comments matter.
  • Replace it with local avatars for membership sites or strict privacy needs.
  • Turn it off if comments are closed or avatars do not fit your design.

Whatever you choose, the setting is one checkbox in Settings > Discussion, so you can change your mind any time.

Frequently asked questions

Is Gravatar free to use?

Yes. Creating a Gravatar profile and uploading a picture costs nothing, and WordPress supports it out of the box. Gravatar is run by Automattic, the company behind WordPress.com. Check the Gravatar website for any optional paid features.

Why does WordPress not let me upload a profile picture?

WordPress relies on Gravatar for profile pictures instead of storing them itself. Your profile page links to Gravatar so you can change the picture there. If you want local uploads, install a plugin that adds a profile picture field to the user screen.

Can I turn off Gravatar in WordPress?

Yes. Go to Settings > Discussion and untick Show Avatars in the Avatars section, then save. Avatars disappear from comments, the toolbar and user lists. Some themes may leave empty spaces, so check your comment layout afterwards.

Why is my Gravatar not showing on my site?

The email address on your WordPress user or comment probably does not match the one linked to your Gravatar. Your picture rating may also be higher than the site allows, or caching may show an old image. Check each in turn.

Is a Gravatar the same as a WordPress.com account?

They are linked but not the same thing. A Gravatar profile can be created with a WordPress.com login, and both are run by Automattic. You can use Gravatar on a self-hosted site without hosting anything on WordPress.com.

Sources

  1. Use Gravatars WordPress.org
  2. get_avatar() WordPress Developer Resources
  3. pre_get_avatar_data hook WordPress Developer Resources
  4. Gravatar Gravatar
  5. Gravatar advisory: how to protect your email address and identity Wordfence

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.