Shaun Murray, 27, shouted: “They are dirty Muslims, they are baby killers, they carry nail bombs” before threatening the cabbie with a weapon, a court heard.
A court heard how he had an “extremely aggressive” manner, while a judge said anyone using the words he did is “by the very nature” a racist.
Murray travelled more than 300 miles to Cardiff to see the Canadian singer in concert at the Principality stadium, the court was told.
But just an hour before gates opened, the defendant waved around a machete and launched a racist rant in front of hundreds of teenage fans.
Murray flew into a rage when the cab driver asked him to move his car parked in a cab rank before the concert.
Prosecutor Ian Kolvin said: “His manner and behaviour was extremely aggressive, he told the taxi driver to ‘f****** move your car.
“He did so repeatedly and called him a mother f******.”
Mr Kolvin said other taxi drivers tried to calm Murray down as he ranted just 500 yards away from the Principality Stadium where the concert was taking place.
“He continued to be abusive, using the F-word and demonstrated racist hostility,” Mr Kolvin said.
“He said: ‘You shouldn’t be in this country.’
“He was then seen to have what appeared to be a machete.
“He shouted: ‘They are dirty Muslims, they are baby killers, they carry nail bombs’.
“If you don’t move your car I’m going to chop you.”
Other taxi drivers and door staff from a nearby bar detained and apprehended Murray before police arrived on the afternoon of June 30.
The machete was found and recovered by police and Murray was arrested.
The defendant, of Newcastle admitted causing religiously aggravated fear and possession of an offensive weapon. He was jailed for ten months.
Judge Jeremy Jenkins said: “You became almost immediately violent and abusive.
“When the taxi driver was trying to reason with you, you told him to f*** off, f******* go back to your own country.
“Anyone behaving in the way you did, using words that you did is by the very nature a racist.
“The words you used in public were deeply offensive.”
Cardiff Crown Court heard Murray had driven from Newcastle-upon-Tyne to South Wales with his younger brother Edward Graham, 19 to see the Canadian singer on his Purpose world tour in June.
Around 50,000 fans attended the concert, which turned out to be the penultimate show on his world tour as the singer cancelled a further 14 dates.