German submarine U-2338 was a Type XXIII U-boat of Nazi Germany's Kriegsmarine during World War II. She was ordered on 20 September 1943, and was laid down on 10 August 1944 at Deutsche Werft AG, Hamburg, as yard number 492. She was launched on 18 September 1944 and commissioned under the command of Oberleutnant zur See Hans-Dietrich Kaiser on 9 October 1944.
Like all Type XXIII U-boats, U-2338 had a displacement of when at the surface and while submerged. She had a total length of (o/a), a beam width of (o/a), and a draught depth of. The submarine was powered by one MWM six-cylinder RS134S diesel engine providing , one AEG GU4463-8 double-acting electric motor electric motor providing , and one BBC silent running CCR188 electric motor providing .
The submarine had a maximum surface speed of and a submerged speed of . When submerged, the boat could operate at for ; when surfaced, she could travel at . U-2338 was fitted with two torpedo tubes in the bow. She could carry two preloaded torpedoes. The complement was 14 â 18 men. This class of U-boat did not carry a deck gun.
On 4 May 1945, U-2338 was sunk east northeast of Fredericia by British Beaufighters of 236 Squadron and 254 Squadron. Twelve crewmen were killed with two survivor Specht, Walter and Durach, Wilhelm
The wreck now lies at . Raised in 1952 and broken up.