Dash cam catches police officer rocking out to Taylor Swift's Shake It Off

Master Corporal Jeff Davis has been described by colleagues as the 'class clown'. Credit: YouTube/Dover police

He might work in a stressful job but this police officer certainly knows how to Shake It Off as he was caught singing along to the Taylor Swift hit while on duty.

Master Corporal Jeff Davis is seen dancing and lip-syncing to the song in a hilarious clip posted on YouTube by police in Delaware.

The video, which was recorded on a police dash cam, was only uploaded on Friday but has already been viewed more than 400,000 times.

Davis 'Shakes It Off' to the chorus. Credit: YouTube/Dover police

Dover Police released it as part of their Dash Cam Confessionals.

A police spokesman described Davis, who has been a police officer for 19 years, as "the class clown".

Davis closes his eyes as he gets into the music. Credit: YouTube/Dover police

Captain Mark Hoffman added he thought the 48-year-old father of four knew the song so well because of his 10-year-old daughter.

Watch the video in full below: