The resulting salt can then be purified by recrystallization.
It can be generated by treating potassium hydroxide (or other potassium bases) with hydrochloric acid:

  
    
      
        
          KOH
          +
          HCl
          ⟶
          KCl
          +
          
            H
            
              2
            
            
              
            
          
          O
        
      
    
    {\displaystyle {\ce {KOH + HCl -> KCl + H2O}}}
  This conversion is an acid-base neutralization reaction.