A man from the US state of Connecticut has been arrested after driving a stolen car to court to face a charge of car theft.

Jonathan Rivera, 25, drove a stolen 2014 Subaru Legacy to the Hartford Superior Court on Wednesday (local time), The Hartford Courant reports.

He was there to answer a charge of first-degree larceny and tampering with a motor vehicle from a car theft on February 7.

While he was waiting to see the judge parking attendants outside the building realised the plates on his car had been reported as stolen. They soon realised the car itself had been stolen because a key fob had been left in it.

Police waited outside the courtroom and when Rivera left the court he was arrested.

He's been charged with second-degree larceny and taking a motor vehicle without the owner's permission.

Newshub.