Image ↔ Base64 Converter – Encode and Decode Online
Free online image and Base64 converter. Quickly convert image files to Base64 text and back.
Free online image and Base64 converter. Quickly convert image files to Base64 text and back.
How to use
What is this for?
Convert common raster formats and Base64 locally in the browser—handy for small inlined images, API payloads, or inspecting data URLs.
Suggested workflow
- Click Upload and choose PNG, JPEG, GIF, or WEBP; the preview updates immediately.
- Optionally check Include data URL prefix, then click To Base64 to write results into the text area.
- Paste Base64 from elsewhere and click To image to refresh the preview (raw Base64 is treated as PNG by default).
- Use Copy Base64 to copy the current text; Clear resets upload, preview, and the text area.
Supported formats
Tips
- Large images produce very long Base64 strings and may slow the page—prefer small assets.
- If pasted text has line breaks or spaces, normalize to a single line before converting to image.
- For general text or file Base64, pair this page with the site’s dedicated Base64 encoder/decoder if needed.