William Ayling (30 September 1766 – October 1826) was an English cricketer who played in 22 first-class cricket matches between 1800 and 1810. Ayling was born in 1766 at Cocking in Sussex, the son of Robert and Mary Ayling. He was a shoemaker and moved to Bromley in Kent in the early years of the 19th century. He made his first-class debut for an England XI against a Surrey side in August 1800 at Lord's Old Ground and went on to play for a variety of sides, most frequently in first-class matches for England sides. He played for the Players in the first two Gentlemen v Players matches in 1806 and made one appearance in a first-class match for a Kent XI against an England side at Bowman's Lodge in 1806.