The state court in the northern town of Schleswig said it set conditions including a 75,000-euro ($92,000) payment for the 55-year-old to leave prison. It wasn't immediately clear when he would be released, though it appeared unlikely before Friday morning.
"We will see each other tomorrow. Thank you all!" a message posted on his Twitter feed read.
Puigdemont was detained on a European arrest warrant shortly after entering Germany on March 25. He was trying to drive from Finland to Belguim where has been living since fleeing to escape arrest in Spain. He has been held at a prison in Neumuenster.
Spanish authorities accuse Puigdemont of rebellion and misuse of public funds in organizing an unauthorized referendum last year on Catalonia's independence from Spain.
German prosecutors argued earlier this week that the main charge of rebellion is equivalent to Germany's criminal offense of treason. German law calls for prison sentences for anyone who "undertakes, by force or through threat of force" to undermine the republic's existence or change its constitutional order.
However, the court disagreed Thursday, saying Puigdemont can't be extradited for rebellion. It found that the accusations against Puigdemont don't satisfy the precedents set by previous German rulings, which call for a use or threat of force sufficient to bend the will of authorities.
"Rebellion is the most serious, having the heaviest punishment. It means that if he is extradited for other things, that he can never be prosecuted for rebellion in Spain," Puigdemont's Belgian defense lawyer, Paul Bekaert, said.
"Again a signal has been sent to Spain's justice system that they are going the wrong way," he told Belgium's VRT network.
Judges will consider Puigdemont's extradition on the less serious charge of misusing public funds, meaning that he only could face trial for that if he were returned to Spain. They said that there was no indication he could be "exposed to the danger of political persecution."
The court said that because Puigdemont can't extradited for rebellion he posed less of a flight risk and could be released on bail.
If Puigdemont makes the bail payment and leaves prison, he can't leave Germany without prosecutors' approval, must inform prosecutors of every change of residence and report to police once a week, court spokeswoman Frauke Holmer said.
In response to the German court's ruling, a Spanish official said the government in Madid respects judicial decisions "always, when it likes them and when it doesn't."
The official, who spoke on customary condition of anonymity, said "Spanish justice will adopt the appropriate measures in the face of these new circumstances."
In Brussels, three fugitive allies of Puigdemont were held briefly Thursday before being conditionally released by Belgian judicial authorities to await a decision on whether they should be extradited to Spain.
Earlier Thursday, the Spanish National Court charged the former head of Catalonia's regional police and other regional security officials with sedition over their role in events leading to the banned referendum on independence.
Judge Carmen Lamela said in an indictment that Mossos d'Esquadra chief Josep Lluis Trapero was part of an organized plan to seek Catalonia's secession, which courts have forbidden because the constitution says Spain is "indivisible."
Trapero was hailed in Catalonia as a local hero for the handling of deadly extremist attacks in and near Barcelona last summer. But he then came under severe pressure when Spanish national authorities asked his regional police force to help prevent the Oct. 1 referendum, which triggered Spain's worst political crisis in decades.
Trapero was demoted when the Spanish government assumed direct rule of the region. Two other members of the regional police and an official with the regional interior department were also indicted Thursday.
Catalonia has been without a president or regional government since a regional election in December which produced a slim majority of pro-independence lawmakers in the Catalan parliament.
Efforts to form a government have been hampered by internal discord within the separatist bloc and the legal challenges faced by presidential candidates.