Both are used. In strictly scientific texts no srticle is used since Earth is a planet and the names of the planets take no article: Jupiter, Venus, Mercury, Earth. In such contexts Earth is always capitalized as well.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.