As a last resort, you can use your pay stub. See the information below for guidance.
However, it would be better if you could get a replacement copy of your W-2 by contacting your employer, or downloading it from their payroll website (if available).
https://ttlc.intuit.com/replies/3301808