It is not advised to use the space heaters all night but there are many heaters with the best safety features that don't let anything wrong happen as they get off automatically if they start overheating. But it is not good to keep the heater on all night. You can set the timer before sleeping.