The German international said he was proud to stick at Bayern, according to a statement from the club, reports Efe.
"I'm very happy I've extended my contract so early. It shows the club and the officials have a lot of trust in me and see me as an important factor for FC Bayern's long-term success," the 23-year-old said.
Bayern's chairman, Karl-Heinz Rummenigge, welcomed the news and said Kimmich's progress in the club's back-line had set the German giants on a positive path.
"Over the last two and a half years, Joshua has developed into a mainstay of our team, Rummenigge said.
"That's why we're extremely pleased we've secured his services for the long term. Thanks to his exceptionally positive progress in the right-back position, FC Bayern has achieved a seamless transition to the future."
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)