How to encode a remote image into base64 string?

I have an image url

url = "https://images.unsplash.com/photo-1511884642898-4c92249e20b6?ixlib=rb- 
1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80"

Can anyone tell me please how can I encode this remote image into base64 string in javascript…