Algae can be converted into various types of fuels, depending on the production technologies and the part of the cells used. The lipid, or oily part of the algae biomass can be extracted and converted into biodiesel through a process similar to that used for any other vegetable oil, or converted in a refinery into "drop-in" replacements for petroleum-based fuels. Alternatively or following lipid extraction, the carbohydrate content of algae can be fermented into bioethanol or butanol fuel.