Substitute Deniz Undav has scored twice in a 2-1 comeback win over Ivory Coast as Germany exorcised the ghosts of 2018 and 2022 by making the men's World Cup knock-outs for first time since 2014.
The 2014 champions crashed out in the group stage in the last two editions and Undav guaranteed qualification to the last 32 with his winner four minutes into stoppage time in Toronto on Saturday.
Captain Franck Kessie put the West Africans ahead on 30 minutes but Undav levelled off the bench in the 68th minute and also grabbed the last-gasp winner in the 94th.
An injury to centre back Nico Schlotterbeck forced him off at half-time in the only negative for the Germans.
Germany boss Julian Nagelsmann played the same starting XI who battered Curaçao 7-1 in their first Group E game.