Gravatar URL Generator
NewBuild a Gravatar avatar image URL from an email address using a client-side MD5 hash, with configurable size, default image style, and content rating.
Gravatar URL
—
Gravatar identifies an avatar by the MD5 hash of the lowercased, trimmed email address — nothing about the email itself is sent anywhere by this tool; only the hash is used to build the image URL, exactly as Gravatar's own embedding instructions describe.
Frequently Asked Questions
Why does this need to compute an MD5 hash?
Gravatar identifies which avatar to serve using the MD5 hash of the lowercased, trimmed email address rather than the plaintext email itself, so building a valid Gravatar URL requires hashing the address exactly the way Gravatar's own embedding documentation specifies.
Is my email address sent anywhere when I use this tool?
No — the MD5 hash is computed entirely in your browser using a self-contained JavaScript implementation (the Web Crypto API doesn't support MD5, since it's considered cryptographically weak for security purposes but is still Gravatar's required identifier format); only the resulting hash appears in the generated URL.
What happens if the email has no registered Gravatar?
The "Default image" option controls this — choosing "mp" (mystery person), an identicon, monster, wavatar, retro, or robohash generates a placeholder image automatically, while "404" instead makes the URL return an actual HTTP 404 error if no Gravatar is set, which is useful for detecting that case in your own code.
What does the "Max rating" option control?
It caps which content-rating tier of image Gravatar is allowed to return (G, PG, R, or X) — if the user's uploaded avatar is rated higher than your chosen maximum, Gravatar falls back to the default image instead.
Can I use this URL directly in an `<img>` tag?
Yes — the generated URL is a complete, ready-to-use image URL; just set it as the `src` attribute of an `<img>` tag (or a CSS `background-image`) on your own site to display the avatar.