The simple answer is no, they won't. Unless you specifically set your panels up to stay on safely, they're designed to switch off automatically in response to power cuts.
Do solar panels generate electricity if there is no power?
Solar panels do generate electricity even when there is no power. They can be used during stormy and cloudy weather and in case of a power outage. Many people use their solar panel system to charge up their batteries as backup energy.
During a power outage, if you have solar panels, they will not stop working, but you must turn off your inverter or disconnect the panels from the grid. This is necessary because if you leave them connected and there is no power coming in from the grid, then they won't be able to charge up at all.
So, when the power goes out, your solar panels' inverter will automatically switch off. It is possible for solar panels to work during an outage. But if they do, it's not by accident: instead, you have to set them up in such a way that they will. They will work, so long as Your panels aren't grid-tied.
If there is no power coming in from the grid, solar panels won't be able to charge up at all. However, you can still use your solar energy during a power outage by powering up devices directly with batteries or generators.
What if my off-grid solar system runs out of power?
If your off-grid solar system regularly runs out of power, then either you don't have enough solar panels or you don't have enough battery storage to meet your energy needs. You may need to add more solar panels and more battery storage or consider moving to an on-grid or hybrid solar system.
An off-grid system refers to solar panels that are not connected to the primary power grid. This is different from a grid-tied system, where solar panels are connected to the local utility company's power line or electric grid. In the case of a grid-tied system, your power will be cut during an outage in your area.