L'Unterseeboot 1231 (ou U-1231) était un sous-marin allemand utilisé par la Kriegsmarine pendant la Seconde Guerre mondiale.