Johan Olof Ramstedt (7 November 1852 – 15 March 1935) was Prime Minister of Sweden from April to August 1905.
He attended Uppsala university where he earned a degree in Government Studies in 1873 after which he interned at the Svea Court of Appeal in Stockholm.
In 1902 the newly elected prime minister Erik Gustaf Boström called upon Ramstedt to join his cabinet.
However the plan never came to fruition as the Norwegian Parliament dissolved the Union on 7 June.
In 1912, Ramstedt was appointed Governor of Stockholm by Prime Minister Staaff.