Britain's biggest bank helped wealthy clients cheat the UK out of millions of pounds in tax, the BBC has learned.
Panorama has seen thousands of accounts from HSBC's private bank in Switzerland leaked by a whistleblower in 2007.
They show bankers helped clients evade tax and offered deals to help tax dodgers stay ahead of the law.
HSBC admitted that some individuals took advantage of bank secrecy to hold undeclared accounts. But it said it has now "fundamentally changed".
The documents, stolen in 2007 by a computer expert working for HSBC in Geneva, contain details of more than 100,000 clients from around the world.
Offshore accounts are not illegal, but many people use them to hide cash from the tax authorities. And while tax avoidance is perfectly legal, deliberately hiding money to evade tax is not.
The French authorities assessed the stolen data and concluded in 2013 that 99.8% of their citizens on the list were probably evading tax.
The thousands of pages of data were obtained by the French newspaper Le Monde. In a joint investigation, the documents have now been passed to the International Consortium of Investigative Journalists, the Guardian newspaper, Panorama and more than 50 media outlets around the world.
The documents include details of almost 7,000 British clients - and many of the accounts were not declared to the taxman.
HM Revenue and Customs (HMRC) was given the leaked data in 2010 and has identified 1,100 people who had not paid their taxes. But almost five years later, only one tax evader has been prosecuted.
HMRC said £135m in tax, interest and penalties have now been paid by those who hid their assets in Switzerland.
But the chairwoman of the Public Accounts Committee, Margaret Hodge MP, said: "I just don't think the tax authorities have been strong enough, assertive enough, brave enough, tough enough in securing for the British taxpayer the monies that are due."
HSBC did not just turn a blind eye to tax evaders - in some cases it broke the law by actively helping its clients.
The bank gave one wealthy family a foreign credit card so they could withdraw their undeclared cash at cashpoints overseas.
HSBC also helped its tax-dodging clients stay ahead of the law.
When the European Savings Directive was introduced in 2005, the idea was that Swiss banks would take any tax owed from undeclared accounts and pass it to the taxman.
It was a tax designed to catch tax evaders. But instead of simply collecting the money, HSBC wrote to customers and offered them ways to get round the new tax.
HSBC denies that all these account holders were evading tax.
Richard Brooks, a former tax inspector and author of The Great Tax Robbery, said: "I think they were a tax avoidance and tax evasion service. I think that's what they were offering. They knew full well that people come to them to dodge their tax liabilities."
The bank now faces criminal investigations in the US, France, Belgium and Argentina. HSBC said it is "co-operating with relevant authorities". But in the UK, where the bank is based, no such action has been taken.
The man in charge of HSBC at the time, Stephen Green, was made a Conservative peer and appointed to the government.
Lord Green was made a minister eight months after HMRC had been given the leaked documents from his bank. He served as a minister of trade and investment until 2013.
He told Panorama: "As a matter of principle I will not comment on the business of HSBC past or present."
HSBC said it has completely overhauled its private banking business and has reduced the number of Swiss accounts by almost 70% since 2007.
In a statement, the bank said: "HSBC has implemented numerous initiatives designed to prevent its banking services being used to evade taxes or launder money."
The bank said it now puts compliance and tax transparency ahead of profitability.
But Panorama has spoken to a whistleblower who said there were still problems with tax dodging at HSBC private bank when she worked there in 2013.
Sue Shelley was the private bank's head of compliance in Luxembourg. She said HSBC did not keep its promise to change. "I think the verbal messages were great but they weren't put into practice and that disturbed me greatly," she said.
It was her job to make sure HSBC followed the rules, but she said she was sacked after raising concerns. She has since won a tribunal hearing for unfair dismissal.
The revelations have caused a political row.
Treasury minister David Gauke has urged Ed Balls, City minister in 2007, to make a statement about the last Labour government's handling of tax evasion.
"It is for the City Minister in [the] years up to 2007, Ed Balls, to make an urgent statement about what he knew about all this and why the then government allowed tax avoidance and evasion to take place on such a scale.
Since 2010 we have closed many of the loopholes exposed in this report and specifically taken action to get back money lost in Swiss Bank Accounts."
But Labour's Rachel Reeves, shadow work and pensions secretary, defended the Labour party against accusations of inaction against tax evasion when it was in power.
"This behaviour by HSBC wasn't unearthed until 2010 so it's not something Ed Balls [City minister in 2007] or the last government could have done anything about," she told Radio 5.
About 92 News HD Live Main TV Channel of Pakistan:
92 News (also known as 92 News HD Plus (Channel 92) is a conservative Urdu language TV channel based in Lahore, Pakistan.
Mian Muhammad Hanif is the chairman of the channel.
This TV channel is a subsidiary of Madinah Group under Galaxy Media Group.
The channel's name, 92, is to celebrate the 1992 Cricket World Cup won by Pakistan. The number 92 is also the telephone country calling code of Pakistan, which is another major reason behind the channel's name.
92 News HD is Pakistan’s first HD Plus News Channel. Aims to bring credible & responsible News & important stories from Pakistan & around the World
We bring you Latest Pakistani and International News at 92 News Hd Plus to Read and Watch
We believe in genuine and true journalism, we do not prevail sensation just for ratings.
We do not hide news but never tend to add any unethical content or angling that goes against the norms of our religion Islam and Pakistan's culture.
تازہ ترین خبریں حاصل کرنے کے لیے فوری اطلاع کی اجازت دیں
آپ کسی بھی وقت دائیں طرف نیچے بیل آئیکن پر صرف ایک کلک کے ذریعے آسانی سے سبسکرائب کر سکتے ہیں۔