The Posh left-back, who had a spell on loan at QPR earlier this season, has teamed up again with former Posh boss Darren Ferguson at Deepdale.
Williams, who will be out of contract at London Raod in the summer, has joined North End on loan for the remainder of the season.