fluorine is normally made by electrolysis. hydrogen fluoride is dissolved in potassium fluoride. this mixture is melted and an electric current is passed through it. this is electrolysis. hydrogen is produced at one side and fluorine at the other side. if the sides are not separated, the cell may explode.