Wrong MIME type
Some tools output `image/vnd.microsoft.icon` while others use `image/x-icon`.
Fix: Both are valid; we emit `image/x-icon` because it is the most widely supported in browsers.
header • up to 320x100 / 728x90
Encode .ico favicon files as Base64 data URLs for inline HTML favicons or web manifests
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Base64 is a binary-to-text encoding that represents arbitrary data using 64 printable ASCII characters, commonly used to embed binary blobs in JSON, URLs, and emails.
ICO is the Windows icon container that holds one or more raster images (typically 16×16, 32×32, 48×48). It is still the most broadly supported favicon format.
ICO to Base64 Encoder takes a .ico file and returns a `data:image/x-icon;base64,…` data URL you can drop directly into `<link rel="icon" href="…">` or a CSS rule.
favicon.ico (binary, 4 KB, 32×32)
data:image/x-icon;base64,AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAAC…
Some tools output `image/vnd.microsoft.icon` while others use `image/x-icon`.
Fix: Both are valid; we emit `image/x-icon` because it is the most widely supported in browsers.
Tools that rasterize through a canvas drop the extra sizes in a multi-res ICO.
Fix: This tool encodes the file byte-for-byte, so every embedded size is preserved.
Yes. Encoding is byte-for-byte, so every image frame in a multi-resolution ICO survives.
No. The encoding happens entirely in your browser.
Use `image/x-icon` for maximum compatibility. `image/vnd.microsoft.icon` is technically more correct but less widely recognized.
Yes — paste the data URL into the Base64 to Image tool; it auto-detects `image/x-icon` and produces a downloadable file.
Related favicon and encoder tools: You can also browse the full Encoders & Decoders category for more options.
Generate favicons from images
Encode PNG images as Base64 data URLs with transparency preserved for inline CSS, HTML, and emails
Convert local image files into Base64 text ready to paste into email, JSON payloads, or data URLs
Encode or decode Base64 strings
Paste any Base64 data URL or raw Base64 string, auto-detect the MIME type, and preview plus download the image
Encode SVG vector images as Base64 data URLs so you can paste them directly into CSS background-image or HTML
Convert BMP bitmap images into Base64 data URLs for embedding in HTML, email, or legacy apps
Inspect favicon, apple-touch-icon, and manifest links from a live page
Turn GIF images (including animated GIFs) into Base64 data URLs ready to embed inline in HTML or CSS
Convert JPG or JPEG images into Base64 data URLs for inline HTML, CSS, or JSON — 100% browser-based
Convert modern WebP images into Base64 data URLs for inline embedding in web pages and emails
Encode JPEG, PNG, GIF, WebP, or SVG images into Base64 data URLs for inline CSS and HTML