Petrol generators are used to convert mechanical energy from a gasoline engine into electrical energy, providing a portable power source. They are commonly used for emergency backup power during outages, as a primary power source in off-grid locations, or to provide temporary power at construction sites, events, or for recreational activities.