Elneny competed at the 2012 Summer Olympics for the Egyptian under-23 team, and played for the senior team at the 2017 and 2019 Africa Cup of Nations, as well as the 2018 FIFA World Cup.