 Ainsley was born on 30 June 1898, the son of John George Ainsley.Ainsley attended elementary school before enlisting in the Durham Light Infantry in 1916 to fight in the First World War.When he returned, he became a coal miner.