UD-3 was an O 21-class submarine. The boat was laid down as the Dutch submarine K XXV and renamed O 25 but was captured during the German invasion of the Netherlands in World War II and commissioned in the Kriegsmarine.