Swainson was born in Dover Place, St. Mary Newington, London. He was the eldest son of John Timothy Swainson, who was also of the Linnean Society. William worked at the Liverpool Customs when he was 14. He studied the ichthyology of western Sicily. In 1815, he returned to England because he became ill.