Skip to main content
Convert File to Data URL embeds a file’s MIME type and base64-encoded bytes in a single string.

Input and output

Data URLs are useful when an API or HTML document expects embedded content instead of a separate file.
Base64 increases the size of the data. Prefer a normal file upload when the receiving service supports one.