The diversity of exoplanets is astonishing, ranging from gas giants to rocky worlds, some of which may harbor life.