Anstey was born at Brinkley in Cambridgeshire, and educated at Eton College and King's College, Cambridge. He was best known for his series of works about the adventures of the "Blunderhead" family in Bath. These were first published in 1766 under the title, The New Bath Guide.