The Allies won both world wars
In both wars, the Allied side defeated the enemy coalition. In the First World War, the Allies defeated the Central Powers. In the Second World War, they defeated the Axis powers. Winning meant different things in each conflict, and the lineup of countries on each side changed between them.
World War 1: the Allies defeated the Central Powers
The fighting ended with an armistice that took effect on 11 November 1918. Bulgaria, the Ottoman Empire and Austria-Hungary had already signed armistices in the weeks before.
Peace treaties followed in 1919 and 1920. The best known is the Treaty of Versailles with Germany, signed in June 1919. Under it, Germany lost territory and its overseas colonies, accepted responsibility for the war under Article 231, and agreed to pay reparations. Readers often ask “Why was Germany forced to accept the blame for World War I?”, and that clause is at the center of the answer.
World War 2: the Allies defeated the Axis
The main Allied powers in the Second World War were Britain, the United States, the Soviet Union and China, with France represented by Free French forces, along with many smaller countries. The Axis powers were Germany, Italy and Japan.
Germany surrendered in May 1945, after Allied forces had entered Berlin. Japan announced its surrender on 15 August 1945, and the formal surrender was signed on 2 September 1945. For more on the end of the fighting in Europe, see the answer to “Who actually won WWII?”
Some countries changed sides between the wars
Italy and Japan were both on the Allied side in the First World War but were Axis powers in the Second. Russia was an Allied power in the First World War, left the fighting in 1917 and 1918, and was a major Allied power in the Second after 1941.
The United States entered both wars on the Allied side. Britain was an Allied power in both conflicts. For a closer look at which states changed sides, see the answer to “Which countries switched sides in WWII?”
Why “winning” is more complicated
The peace after the First World War left Germany with resentment and economic problems. Many historians see links between the terms of that settlement and the events that led to the Second World War, though they disagree about how strong those links were.
Victory also came at a high cost. Both wars caused enormous loss of life, and the Soviet Union suffered some of the heaviest losses of the Second World War. Knowing who won is the starting point; the aftermath of each war is what makes the question more complex.