In doubles, Stojanović reached her first Grand Slam semifinal at the Australian Open. She also partnered with compatriot Aleksandra Krunić to win her second career WTA doubles title at the inaugural Serbia Open, as well as to reach the quarterfinal of Wimbledon. As a result, she reentered the top 50 in doubles reaching a career-high of World No. 42 on 19 July 2021. At the Tokyo Olympics, she paired with countryman and men's singles world No. 1 Novak Djokovic in mixed doubles, and the team reached the semi finals.