In general, modding a video game for personal use or for non-commercial purposes is often considered legal, as it falls under the category of fair use. However, there are some cases where modding may be illegal or violate the terms of service for a game.