Modern laptops are designed with built-in mechanisms to prevent overcharging, so charging your laptop overnight is generally safe. However, it is recommended to unplug the charger once the battery is fully charged to avoid unnecessary strain on the battery.