In this post I am going to explain how to get customer data by customer email Magento 2.

Using below code snippet you can get customer data by passing customer email and website id.

Add below code snippet in Block class.

Add below code snippet in template file.

That’s it. Enjoy Magento 2!!