Michael Cohen, his former client, attacked US President Donald Trump and described him as "racist" and "fraudulent" in his testimony before the US Congress on Wednesday.

Cohen, who was sentenced to prison after being convicted of crimes related to his work with Trump, expressed regret for his former loyalty to Trump.

"I'm ashamed to have been involved in covering Trump's illegal actions instead of listening to my conscience," he told the oversight and reform committee.

He added that Trump was "racist, fraudulent and deceitful," adding that he would provide "irrefutable evidence" of Trump's offenses, including the payment of money to two women before the 2016 elections.