Batteries convert chemical energy directly to electrical energy. A battery consists of some number of voltaic cells. Each cell consists of two half-cells connected in series by a conductive electrolyte containing anions and cations. One half-cell includes electrolyte and the negative electrode, the electrode to which anions (negatively charged ions) migrate; the other half-cell includes electrolyte and the positive electrode to which cations (positively charged ions) migrate. Redox reactions power the battery. Cations are reduced (electrons are added) at the cathode during charging, while anions are oxidized (electrons are removed) at the anode during discharge. The electrodes do not touch each other, but are electrically connected by the electrolyte. Some cells use different electrolytes for each half-cell. A separator allows ions to flow between half-cells, but prevents mixing of the electrolytes.