He was a member of Iran national military team. In 1959 at the age of 25, Ranjbar was invited to the senior team and was a part of the team in the 1960 AFC Asian Cup. After Parviz Dehdari's retirement in 1965, he was captain of the national team for two years. He was retired in 1967 after match against Turkey.