Anyone else wonder how the default profile pics for Stack Overflow are generated? It must be generated dynamically as it shows random patterns. Can anyone show an implementation of the algorithm in Java?

  • 1
    It's not random, it's based on the email. Same email will give same picture. Jun 20, 2013 at 8:39

1 Answer 1


The generated profile picture is called a gravatar, read about in the linked answer. And for generating it in Java, as is suggested here, you could take a look at jgravatar.

Not the answer you're looking for? Browse other questions tagged .