URL to Base64 Converter

Enter a URL to fetch its content and encode it to Base64. Works best with CORS-enabled URLs. For local files, use File to Base64 instead.

Enter URL

Note: Due to browser CORS restrictions, this only works with URLs that allow cross-origin requests. Many external sites block this. It works best with same-origin or CORS-enabled URLs.

Base64 Output

Copied!

What does URL to Base64 do?

Fetches content from a URL and encodes it to Base64. Enter a URLβ€”the tool fetches the resource (image, file, etc.) and converts it to a Base64 string. Useful when the file is online and you need Base64 without downloading first.

What is it used for?

  • Remote images: Convert image URLs to Base64 for embedding
  • APIs: Get Base64 from a URL without manual download
  • Data URIs: Create data:image/png;base64,... from image URLs
  • Quick conversion: When you have a URL but need Base64

CORS limitation

Browsers enforce CORS. Many external URLs block cross-origin requests. Use URLs that allow CORS (e.g. same-origin, or servers with Access-Control-Allow-Origin). For local files, use File to Base64 instead.