Technically speaking, the earth weighs nothing because the weight depends on the force of gravity that acts on the object. The Earth is floating in space.
Nevertheless, mathematicians, as a curiosity, calculated the weight of the earth on the basis of the Earth’s gravitational attraction. They calculated a figure in the region of 6,000,000,000,000,000,000,000,000 kg. In other words, it is about 6 quadrillion kilograms.