"Credit Suisse group and the Public Prosecutor's Office in Düsseldorf have reached an agreement regarding the proceedings against Credit Suisse employees," said the bank in a statement.
"The entire proceedings are to be resolved," it added.
The bank said the settlement meant that "a complex and prolonged legal dispute has been avoided."
In addition, the deal provides "legal certainty."
In 2010, the Düsseldorf prosecutor's office raided branches of Switzerland's second biggest bank in 13 German cities as part a probe of 1,100 clients and bank staff suspected of hiding funds from tax officials.
The raid came after officials in the German state of North Rhine-Westphalia bought a computer disc for a reported €2.5 million ($3.2 million) with information on wealthy Germans linked to the investigation.
They were urged to come forward of their own accord to avoid prosecution, and some 12,000 had done so by late March 2010.
A spokesman for Düsseldorf prosecutors told AFP at the time that "the Credit Suisse clients have investments a total of around €1.2 billion."