Image to Base64 & Back
Turn an image into a data URL, raw Base64 or ready CSS, HTML and Markdown snippets, or paste Base64 to get the image back and download it. All in your browser.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- In “Image → Base64” choose an image, pick the output format, then copy it or save it as text.
- In “Base64 → Image” paste a data URL or Base64 string, preview the image and download it with the right extension.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Why is Base64 bigger than the image?
Every 3 bytes become 4 characters, so it grows by about a third. Use it for small images such as icons.
How is the type detected?
From the file’s first bytes (its signature), not the name. PNG, JPG, GIF, WebP, BMP, ICO, AVIF and SVG are recognised.
Is the image uploaded?
No. The conversion happens entirely in your browser.
Related tools
Placeholder ImageMake a placeholder image at any size, colour and label (like 1200 × 630) for mockups or code: PNG, JPG, WebP or SVG, with a ready data URL and <img> tag to copy.Convert Image FormatConvert images between PNG, JPG and WebP, one at a time or as a batch, with control over quality and the background colour that replaces transparency. Runs on your device, no upload.Compress ImagesShrink JPG, PNG and WebP images with control over quality and dimensions. Compression runs on your device, and EXIF data is dropped from the output.Favicon GeneratorCreate your site icon from an image, letters or an emoji: favicon.ico, PNG sizes, Apple touch icon, site.webmanifest and ready HTML tags, all in one ZIP.