UMEA, Sweden — Canada is heading to the semifinals at the world under-18 hockey championship.

Peyton Krebs scored two goals to lead Canada to a 3-1 quarterfinal win over Latvia on Thursday.

Krebs' empty-netter with 20 seconds left sealed the victory for Canada (5-0).

Braden Schneider also scored for Canada, while goalie Taylor Gauthier made 38 saves.

Harijs Brants scored for Latvia, while netminder Arturs Silovs stopped 40 shots.

Canada will face host Sweden (4-1) in a semifinal on Saturday. Sweden beat the Czech Republic 4-2 in quarterfinal play.

Russia will face the United States in the other semi.

The Americans beat defending champion Finland 6-0 on Thursday, while Russia knocked off Belarus by the same score.

The medal games are Sunday.

Canada hasn't won a medal at the event since 2015 when it captured its second straight bronze. Canada's last gold came in 2013.