Joshua Kimmich described Germany's humiliating World Cup exit as the worst moment of his career as Japan and Spain progressed following a dramatic Group E finale on Thursday.

Germany began their final fixture against Costa Rica knowing a win would likely take them into the last 16 if Japan failed to beat Spain, and Hansi Flick's men held up their end of the bargain with a 4-2 victory.

However, Ritsu Doan and Ao Tanaka scored as Japan staged a remarkable comeback to beat La Roja, ensuring they emerged as surprise group winners and ending Germany's bid for a fifth World Cup triumph.

Germany have now failed to progress beyond the group stage at consecutive World Cups after doing so on each of their previous 16 appearances at the tournament, leaving Kimmich devastated.

"For me personally, this is the worst day of my career. I'm afraid I'll fall into a hole," Kimmich told reporters. "It makes you think these failures are connected to my person.

"This is definitely the most difficult day of my career for me. The second time being eliminated at a World Cup, in between we had the Euros, where we were eliminated early.

"That is bitter and there have been many missed opportunities within the last four years."

Germany reached the semi-finals of Kimmich's first major tournament at Euro 2016, but they have since fallen at the first hurdle at two World Cups and suffered a last-16 defeat to England at Euro 2020.

Costa Rica briefly took a surprise lead when Manuel Neuer put through his own net with 20 minutes remaining on Thursday, and Germany have now gone 12 major tournament games without a clean sheet (World Cup/Euros) – their longest ever streak.

Kimmich's fellow midfielder Ilkay Gundogan hit out at Die Nationalmannschaft's defending as he called on his team-mates to reflect on their shortcomings.

"We concede goals too easily, we lose balls too easily and up front we miss goalscoring chances too easily," Gundogan said.

"Of course, as Germany, we have to have different aspirations, so we have to take a good look at ourselves.

"We just didn't manage to do our best as a group, or maybe individually. We have to question what the reasons were and everyone has to look in the mirror and tell themselves that it wasn't enough."