Modern solution: let blob = await fetch(url).then(r => r.blob()); The url can be an object url or a normal url.