It is generally safe to charge a device overnight, however, it is best to unplug the device once it reaches 100% to prevent overcharging. Overcharging can cause the battery to degrade over time, reducing the overall lifespan of the device.