Data
Base64 Image
Convert an image file to Base64, or decode Base64 back to an image with auto-detected format.
Image file or Base64
Select an image file, or paste Base64 here.
Output
Explanation
Encode: converts an image file to a Base64 Data URL via FileReader. Decode: accepts Base64 with or without a data URL prefix, auto-detects PNG/JPEG/GIF/WebP/BMP/SVG from file headers, and renders the image.
Security Notice
All processing happens locally in your browser whenever possible. Your data is not uploaded unless explicitly stated.