In a cell electrolyte is present. The electrolyte is an ionic solution.
Electrolyte breaks into its components and is continuously deposited on the cathode and anode terminals of the cell and due to this ionic movement cell produces electricity. So, we can say that the cell converts chemical energy into electrical energy.
Hence, A cell converts chemical energy into electrical energy.