Carl Piper was born on 29 July 1647 in Stockholm, the son of the accounts officer Carl Piper and Ingrid Ekenbom. His father died when the boy was three years old. At thirteen Piper began studying at Uppsala University, and in 1668 he joined the royal chancery as a copyist. In 1673 he went along on an embassy to Russia, and in 1677 he became registrar of the field chancery in Skåne. He was ennobled in 1679 and in 1689 became chancery councillor and state secretary for domestic affairs. On 13 February 1690 he married Christina Törne.
After Charles XII took power, Piper became a member of the council while keeping his post as state secretary, and at the start of 1698 he was raised to baron and count. When war broke out in 1700, the field chancery was set up, and Piper led it together with Thomas Polus; once Polus suffered a stroke and went home, the whole burden fell on Piper. He opposed the king's Polish policy, which he nevertheless had to defend officially, and he tried several times in vain to make Charles XII accept a peaceful settlement with King Augustus. In 1702 he became chancellor of Uppsala University, and in 1705 chief marshal of the court.
In June 1709 Piper fell into Russian captivity after the Battle of Poltava, together with the rest of the field chancery. He was taken to Kyiv and then to Moscow, where he devoted himself intensively to the cause of the Swedish prisoners, partly at his own expense, and kept a detailed diary from the battle until his departure. In November 1714 he was moved away from Moscow, first to Petersburg and the next year to the fortress of Schlüsselburg (Nöteborg), where he died on 29 May 1716. His body was brought to Sweden in 1718 and buried the following year on his estate Ängsö in Västmanland.
