German submarine U-4712 was a Type XXIII U-boat of Nazi Germany's Kriegsmarine during World War II. She was ordered on 7 July 1944, and was laid down on 3 January 1945 at Friedrich Krupp Germaniawerft AG, Kiel, as yard number 954. She was launched on 1 March 1945 and commissioned under the command of Oberleutnant zur See Karl-Heinz Rohlfing on 3 April 1945.[2]