In May 2018 he was named in Croatia's preliminary 32 man squad for the 2018 World Cup in Russia. Throughout the tournament Ivan Strinić, Croatia's first choice left back, was battling injuries mostly due to his team playing three consecutive extra time matches to get to the final. This allowed Pivarić a great deal of playtime in Croatia's run to the 2018 World Cup Final.