Or If you just need the information from your W-2, but not an actual copy, you can get a Wage and Income Transcript from the IRS for free. This will contain the information from all the W-2s that were sent to the IRS by your employers. However, it does not include the state and local information (boxes 15 - 20). Go to the following link to get a transcript. You want a Wage and Income Transcript, not a Tax Return Transcript.
https://www.irs.gov/individuals/get-transcript
And See, https://ttlc.intuit.com/community/forms/help/how-can-i-get-a-copy-of-my-w-2/00/26328