Go to Trimmr and create Cross object dataset

In the dialog window select Contacts for Parent dataset and Leads for Child dataset. Hit Save.

Go to Importr and hit Upload CSV file, select Import To "Lead" object and Compare To "Leads in Contacts" dataset in the Import CSV dialog.

Continue mapping CSV columns and hit Finish, the file will be deduped against both Leads and Contacts.