Currently, the consistency of tailor welded blanks ( TWBs ) with the design part is receiving more attention owing to the extensive use of TWBs. An approach based on compensation principle is proposed in this paper, which reduces the deviation between the design weld line and the actual weld line after forming of TWBs. Firstly an optimization model based on the offset of the blank weld line of TWBs is built. Then a C++ program is developed as the external customized optimizer. It bases on the FEM simulation software HyperWorks. At last, a example using the approach is provided, and the results show that the method is practicable.