Portable generators provide electricity by running a gas-powered engine that turns an on-board alternator to generate electrical power. Power outlets on the unit allow you to plug extension cords, electric-powered tools and appliances into it.