Pepper enlisted in the Queen's Own (Royal West Kent Regiment) during the First World War. He spent time with the regiment in India before being deployed to the Middle Eastern theatre in December 1917. Pepper was serving as an acting lance corporal when he was killed in Iraq during the Battle of Sharqat on 25 October 1918. He is commemorated on the Basra Memorial.