We report a set of electrochemically regulated protocols for the divergent synthesis of ketones and β-keto esters from the same β-hydroxycarboxylic acid starting materials. Enabled by electrochemical control, the anodic oxidation of carboxylic acids proceeded in either a one-electron or a two-electron pathway, leading to a 1,4-aryl transfer or a semipinacol-type 1,2-group transfer product with excellent