W-2’s come from employers.
Some employers have payroll sites that will have your W-2. You might need to phone, drop in, email and/or snail mail an old employer to make sure they know where to send your W-2.
https://ttlc.intuit.com/turbotax-support/en-us/help-article/tax-forms/get-copy-w-2/L8FTim9MO_US_en_U...
You can get a wage and income transcript from the IRS: It will not show the actual W-2, 1099’s, etc, but will show the income information the IRS received. It will not, however, show your state information. It will only show the federal information.
https://www.irs.gov/individuals/get-transcript
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**