Mass is the amount of matter in an object,whereas weight is the force of gravity acting on the mass of an ovject.A change in gravity causes change on the weight of matter. The grealler the gravitational force. The heavier is the weight of the object.
The gravitational and size of the object don't affect the mass of an object. Hence, the mass is same on the Earth,the moon and in the Outer space.