Get customer id by email address Magento 2.

You can get Customer id by customer email address using CustomerRepositoryInterface interface.

You can get Customer information by Customer email id, You need to use Magento\Customer\Api\CustomerRepositoryInterface to fetch customer id and customer data.

Simple Code stuff using Model,

You need to call above function to get Customer id from Email id.

getCustomerIdByEmail($email) function need email id to fetch customer data.