FREE TOOLS
Image to Base64
Encode an image as a Base64 data URL locally, with a downloadable text result.
PNG, JPEG, static WEBP, BMP, GIF first frame, static SVG shapes
Base64 data URL text
Browser only
Your input and output are processed in this browser. They are not uploaded for processing. No account is required.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Choose an image to encode its original bytes as a data URL.
- Choose Process image.
- Review the result and download it. Reset clears selected input and output; changing a setting clears the old result.
Examples
Create a data URL for a small PNG icon.
Limitations
Processing is local; input and output are not uploaded.
20 MiB and 24 megapixels per image; at most 16,384 pixels per side. SVG input is limited to 2 MiB.
Animated WebP and PNG are not supported. GIF uses the first frame. SVG supports a strict self-contained static-shape subset; text/fonts, CSS, external resources and active content are rejected.
Stored pixel orientation is used: EXIF orientation is not applied. Browser color decoding and native encoding can vary.
The data URL retains original file bytes and metadata. Base64 grows the data by about one third. Download text instead of inserting untrusted SVG into HTML.