It is generally safe to sleep in your car overnight, providing the engine is turned off and you're parked in a secure location. Cars are not airtight, meaning oxygen can enter the vehicle during the night to allow comfortable breathing, even when the windows and doors are closed.