Check this link, but it is not free. https://www.irs.gov/Help-&-Resources/Tools-&-FAQs/FAQs-for-Indi
Frequently-Asked-Tax-Questions-&-Answers/IRS-Procedures/Copies-&-Transcripts
/Copies-&-Transcripts-1
You might ask Social Security Administration to get a free one if you have a
good reason related to social security. I don't remember exactly.