SM UB-127 was a German Type UB III submarine or U-boat in the German Imperial Navy () during World War I. She was commissioned into the German Imperial Navy on 1 June 1918 as SM UB-127. UB-127 was lost at the North Sea Mine Barrage in September 1918.