Conversores herramienta
Image to Base64
Convert any image to a Base64 data URI in your browser, or paste a Base64 string to preview and download the image.
Convert any image to a Base64 data URI in your browser, or paste a Base64 string to preview and download the image. Free, fast, and private.
Por qué la gente usa esta herramienta
Image to Base64 turns a local image file into a data URI you can embed in HTML, CSS, JSON, or email — and decodes pasted Base64 strings back into a previewable image you can download.
- Embed small icons or signatures inline in HTML email or CSS.
- Paste an image into a JSON or YAML config file as a data URI.
- Preview a Base64 string copied from a debugger or API response.
Cómo usarla
- 1Drop or pick an image file to encode.
- 2Copy the data URI directly, or switch to the decode panel and paste a Base64 string to preview the original image.
- 3Use the Download link to save a decoded image to disk.
Best practices
- Only inline small images — Base64 inflates payload size by ~33%.
- Use the data URI format for images that ship with HTML email templates.
- Prefer regular <img src> URLs for anything served by a normal web server.
- Strip metadata before encoding if the image contains EXIF or location data.
Common mistakes to avoid
- Do not inline large images — they bloat HTML and hurt cache reuse.
- Do not paste secrets or private screenshots into shared Base64 strings.
- Do not assume every browser handles very long data URIs; some have length limits.
- Do not base64-encode images that already ship from a CDN.
Preguntas frecuentes
Respuestas útilesAre images uploaded?
No. Encoding and decoding both happen in your browser using FileReader and the DOM.
When should I inline an image as Base64?
For very small icons, signatures, or images embedded in email templates where external requests are blocked.
What formats are supported?
Anything the browser can read as an image (PNG, JPG, GIF, WebP, SVG) for encoding. Decoding accepts any valid image data URI.