Presenter James Corden has said the memory of filming Carpool Karaoke with Sir Paul McCartney will live with him forever.

Corden, 39, shared a picture of him and Sir Paul, 75, hugging in front of a black Range Rover.

The image had been posted on the official Twitter account of Corden’s US talkshow The Late Late Show to confirm the former Beatles musician’s appearance during a series of special episodes made in the UK.

Corden wrote: “I can’t wait for you all to see this. It was a day that will live with me forever x.”

The Carpool Karaoke feature of the programme sees the British presenter drive celebrities around while they sing along to well-known songs on the car’s radio.

Sir Paul joins the likes of Stevie Wonder, Take That and Bruno Mars in making an appearance as one of Corden’s passengers.

Speculation that the Liverpudlian singer-songwriter would be appearing on Carpool Karaoke grew after he was spotted by a tour group along with Corden in his home city over the weekend.

Tour guide Jackie Spencer told entertainment trade magazine Variety she spotted the pair at the statue of the four Beatles on the city’s waterfront.

Spencer said: “There was a couple of paparazzi around and we said to one of them, ‘Who’s the celebrity in town?’

We’d heard rumours but nobody would tell us. And then this guy said, ‘Well, I’ll tell you one of them: It’s James Corden. He’s with somebody else and they’re in that car over there.’

“And the next minute this black car pulls up and both Paul McCartney and James Corden get out of it!”

Spencer confirmed Sir Paul and Corden stopped to take pictures with the group of 30-40 people after they were spotted.

“He [Sir Paul] was being really nice to everybody. He was backing people in so they could get pictures with him.

“He and James Corden were taking selfies. And they just walked back, got in the car and disappeared off and went ’round Liverpool. It was fabulous.”

The Late Late Show’s original tweet of the photo was accompanied with a caption that confirmed Sir Paul’s spot on Carpool Karaoke will air next week.

The caption said: “It’s happening! Carpool Karaoke with Paul McCartney premieres next week during our four nights in London!”