Williams beat GOP challenger Daniel Alvarez, a former assistant district attorney, while Butkovitz won against Republican Terry Tracy, a retail business manager.
Williams, who was unopposed for the Demoratic nomination, got a second four-year term as the chief prosecutor in Pennsylvania's largest city.
Butkovitz, who won a three-way primary contest, was re-elected to his third term.