Ian McCartney, Foreign Office minister for trade, said Britain had formally accepted the invitation from the Chinese government to take part in the giant international fair.
"The Shanghai Expo is a fantastic opportunity to broaden and deepen the United Kingdom's relations with China," he said.
"The theme of the Expo, 'Better City Better Life', is one where the UK has much expertise and experience.
"The Expo will provide the perfect opportunity to highlight British creativity, diversity and innovation and our contribution to dealing with global challenges such as sustainable development, including climate change.
"These are challenges that the UK and China have already agreed we need to tackle together."