Drag & Drop your image here
or click to browse or paste (Ctrl+V)

Convert images to Base64 strings for HTML, CSS, and JSON embedding. Decode Base64 back to images. 100% private, works in your browser.
or click to browse or paste (Ctrl+V)
Encode any image as a Base64 data URI you can paste directly into HTML, CSS, or Markdown — or decode a Base64 string back into a downloadable image. No uploads, no size limits beyond your device memory. This is the tool devs actually want: a fast, local Base64 encoder that handles JPG, PNG, SVG, WebP, and small GIFs without wrapping every output in a pitch for a paid tier.
Base64 is a way to represent binary data as plain text. For images, the encoding produces a string that starts with `data:image/png;base64,...` and can be pasted directly into an `<img src>` or CSS `background-image` without needing a separate file. Useful for emails (where referencing external images can be blocked), for small icons in CSS to save HTTP requests, for quick embedding in JSON APIs, and for sending images through text-only protocols.
Base64 encoding grows the data by about 33% compared to the raw file, and the encoded string does not cache separately from the HTML or CSS it is in. For anything above ~10KB or reused across pages, a regular image file is smaller and faster. Base64 shines for tiny icons, logo marks in email signatures, and one-off embeds where a separate HTTP request is overkill. If you are debating inlining a large hero image, do not — ship it as a separate file and compress it.
Encode: upload an image, get the Base64 string. The tool wraps it in a full data URI ready to paste. Decode: paste a Base64 string (with or without the `data:image/...;base64,` prefix) and the tool renders it back to an image you can preview and download. Handy for inspecting Base64 you found in someone else's HTML or CSS, or for saving an image out of a tool that only hands you a data URI.
Base64-encode a small logo or header image so it renders without a remote fetch that corporate email filters might block.
Tiny icons as Base64 in CSS saves an HTTP request and avoids the flash while the file loads. Good for under-10KB icons.
Encode image uploads into JSON payloads when working with APIs that expect Base64 binary fields.
Right-clicked an image in DevTools and got a Base64 data URI? Paste it here to render and save as a regular PNG or JPG.
Professional results in 3 simple steps.
Select your photos or videos. Files processed locally.
Our powerful engine optimizes your files instantly.
Get your optimized files immediately.