Title: Military history of France during World War II
Content:  On June 21, Italian troops crossed the border in three places. Roughly thirty-two Italian divisions faced just four French divisions. Fighting continued in the east until General Pretelat, commanding the French Second Army group, was forced to surrender on June 22 by the armistice. France formally surrendered to the German armed forces on June 22 in the same railroad car at Compiègne in which Germany had been forced to surrender in 1918. This railway car was lost in allied air raids on the German capital of Berlin later in the war.
Title: Military history of France during World War II
Content:  to the British empire. The military participation of the French ground armies, navies and air forces on the Allied side in each theater of World War II (1939–1945) before, during and after the Battle of France, even though it was on various degrees, secured France's acknowledgment as a World War II victor and allowed its evasion from the US-planned AMGOT; even though after World War II USAF bases were maintained in France until their evacuation in 1967, due to de Gaulle's rejection of NATO. As a result, Free French General François Sevez signed the first German Instrument of Surrender, as witness, on 7 May 1945 (Rheims, France), 
Title: European theatre of World War II
Content:  As a result of this, as well as the superior German communications and tactics, the Battle of France lasted only six weeks; far shorter than what virtually all pre-war Allied thought could have conceived. On 10 June Italy declared war on both France and the United Kingdom but did not gain any significant success in this campaign. The French government fled Paris, and soon, France surrendered on 22 June. In order to further the humiliation of the French people and the country itself, Hitler arranged for the surrender document to be signed in the Forest of Compiègne, in the same railway 
Title: History of France (1900–present)
Content:  In September 1939 Hitler invaded Poland, and France and Great Britain declared war. Both sides built up forces along to the Western Front, but for the next eight months neither side made a move: this was the "phony war". The German Blitzkrieg began in May 1940, and in six weeks of retreating the French lost 130,000 men. The Allied armies crumbled, but the British managed to rescue their own soldiers and about 100,000 French soldiers in the Dunkirk evacuation. France was defeated and had to sign an armistice with Nazi Germany on June 22, 1940. French soldiers became prisoners of war in Germany, were assigned to munitions factories as forced labor, and served as hostages. Nazi Germany occupied three fifths of France's territory 
Title: Military history of France during World War II
Content:  1st Army General Jean de Lattre de Tassigny signed the second declaration on 8 May 1945 (Berlin, Germany), also as witness, and French General Philippe Leclerc de Hauteclocque signed the Japanese Instrument of Surrender on behalf of the Provisional Government of the French Republic on 15 August 1945 (Tokyo bay, Japan). The complex and ambiguous situation of France from 1939 to 1945, since its military forces fought on both sides under French, British, German, Soviet, US or without uniform – often subordinated to Allied or Axis command – led to some criticism vis-à-vis its actual role and allegiance, much like with Sweden during World War II.
Title: Timeline of the Battle of France
Content:  soldiers from French ports of Cherbourg, St. Malo, Brest, St. Nazaire, La Pallice, Nantes, and Le Havre. ; 17 June: Petain asked Germany for armistice terms. Finishing off some Allied resistance, the Germans crossed the river Loire and reached the Swiss frontier. ; 18 June: Adolf Hitler and Benito Mussolini met in Munich Germany. General de Gaulle told the people of France on a broadcast from London on the BBC to resist the Germans. ; 22 June: France signed an armistice with Germany. ; 23 June: Adolf Hitler toured captured Paris. ; 24 June: The French officially surrendered at Compiegne, site of the German World War I surrender. 
Title: France–Germany relations
Content:  Finally, however, Hitler pushed France and Britain too far, and they jointly declared war when Germany invaded Poland in September 1939. But France remained exhausted and in no mood for a rerun of 1914–18. There was little enthusiasm and much dread in France at the prospect of actual warfare after the Phoney War. When the Germans launched their blitzkrieg invasion of France in 1940, the French Army crumbled within weeks, and with Britain retreating, an atmosphere of humiliation and defeat swept France. A new government under Marshal Philippe Pétain surrendered, and German forces occupied most of the country. A minority of the French forces escaped abroad and continued the fight under General Charles de Gaulle and Free France. On the other hand, the French Resistance conducted sabotage operations inside German-occupied France. 
Title: Armistice of 22 June 1940
Content:  The best, most modernised French armies had been sent north and lost in the resulting encirclement; the French had lost their best heavy weaponry and their best armored formations. Between May and June, French forces were in general retreat and Germany threatened to occupy Paris. The French government was forced to relocate to Bordeaux on 10 June to avoid capture and declared Paris to be an open city the same day. The proposal of a Franco-British Union to shore up support for Paul Reynaud's government following the fall of Paris split support. With many pro-Armistice ministers in the cabinet, such as the Deputy Prime Minister Pétain, and the commander-in-chief of the French Army General Weygand, Reynaud resigned on 16 June. Petain became Prime Minister. While French resistance continued with the Free French Forces led by Charles de Gaulle, the surrender of Metropolitan France ended any further attempts by the British to unite the two countries. By 22 June, the German Armed Forces (Wehrmacht) had losses of 27,000 dead, more than 111,000 wounded and 18,000 missing. French losses were 92,000 dead and more than 200,000 wounded. The British Expeditionary Force suffered 68,000 casualties, with around 10,000 killed.
Title: Military history of France during World War II
Content:  From 1939 until 1940, the French Third Republic was at war with Germany. The period from 1940 until 1945 saw competition between Vichy France and the Free French Forces under General Charles de Gaulle for control of the overseas empire. In 1944, after the landings of the Allies in France (Normandy, Provence), they expelled the German Army, putting an end to the Vichy Regime. France and Britain declared war on Germany when Germany invaded Poland in September 1939. After the Phoney War from 1939 to 1940, within seven weeks, the Germans invaded and defeated France and forced the British off the continent. France formally surrendered to Germany. 
Title: History of France
Content:  III surrendered himself and 100,000 French troops to the German troops at Sedan on 1–2 September 1870. Two days later, on 4 September 1870, Léon Gambetta proclaimed a new republic in France. Later, when Paris was encircled by German troops, Gambetta fled Paris became the virtual dictator of the war effort which was carried on from the rural provinces. Metz remained under siege until 27 October 1870, when 173,000 French troops there finally surrendered. Surrounded, Paris was forced to surrender on 28 January 1871. The Treaty of Frankfurt allowed the newly formed German Empire to annex the provinces of Alsace and Lorraine.

Question: who did france surrender to in ww2?
Answer: Germany.