Get your taxes done using TurboTax

if you need a copy of a w-22 for 2021 or prior you can get a transcript from the iRS - no state info

https://www.irs.gov/individuals/get-transcript 

if you also need an actual copy of the w-2 check this page on the Social Security Adm website. there is a fee of $126

https://faq.ssa.gov/en-us/Topic/article/KA-02501