The 25-year-old's previous deal had been due to expire at the end of next season, and Southampton were linked with a move for the Australia global earlier this month.
The Hoops teased fans by posting a line from the Wizard of Oz film - "There's no place like home" - before announcing the new deal on Twitter. "I'm very proud and honoured to be able to commit my future to the club", Rogic told the club's official website.
Celtic boss Brendan Rodgers has been impressed with his squad's "hunger" to win this season.
"I'm working under a top class manager and to play my club football here is something that's very special to me".
The 25-year-old joined Celtic from A-League side Central Coast Mariners in 2013 and has gone onto establish himself as one of their key players.
Australia global Rogic has been with Celtic since 2013 and established himself as a first-team regular during 2015-16 after a loan spell back at home with the Melbourne Victory.
Celtic supporters are over the moon this evening after it was confirmed Tom Rogic has signed a new long-term deal with the Parkhead club.
"It's my job and the players' job to repay that".
The Belgian has made 37 appearances across all competitions this season and will find out next week if he has made Roberto Martinez's squad for the World Cup in Russian Federation.