Einar-Fredrik Ofstad (6 May 1916 – 1998) was a Norwegian diplomat. He was born in Rjukan, and after taking the examen artium he studied at Cambridge University for a period and participated as an officer in the Norwegian Campaign near Voss in 1940, before graduating with the cand.jur. degree in law in 1941. He was a police superintendent in Bergen from 1941 to 1942, worked in the National Insurance Administration from 1942 to 1943 at the same time as he participated in the Norwegian resistance to German occupation. He had to flee to Sweden in 1944, and continued to England where he served in the Norwegian High Command and the Ministry of Defence-in-exile. He was decorated with the Defence Medal 1940–1945.