Tools / Base64 tools
Base64 encoder, decoder & image converter
Encode or decode text, convert an image to a Base64 data URL, or preview and download an image from one. Everything runs on your device.
Image to Base64
Base64 to image
More free checks
Run a full security scan or speed test on your site, or try a related tool.
Related free tools
Privacy and limits
- Text and image data are processed locally and are not uploaded.
- Image upload is limited to 2 MB to keep the page responsive.
- Image decoding accepts raster image formats only; SVG is excluded to avoid rendering active content.
What you can do here
- Encode text to Base64, for example to build a
Basicauthorization header or embed a small value in JSON. Text is converted as UTF-8 first, so accented letters and emoji survive the round trip. - Decode Base64 back to readable text, to see what a token, cookie or encoded configuration value contains.
- Image to Base64 turns a PNG, JPEG, GIF, WebP or AVIF file into a
data:URL you can paste into CSS or HTML. - Base64 to image previews an encoded image and lets you download it as a file.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding: anyone can decode it instantly, as this page shows. Never rely on it to hide passwords, API keys or personal data.
When should I inline an image as a data URL?
Only for very small images such as icons. Base64 makes the data about a third larger, and an inlined image cannot be cached separately from the page or stylesheet that contains it.
Why is SVG not accepted for decoding?
An SVG file can contain scripts and links. Rendering one decoded from untrusted text is a needless risk, so the preview accepts raster formats only.
Why does decoding show garbled characters?
The original data was probably binary (an image, a compressed file or an encrypted blob) rather than text. Try the Base64 to image section if you expect an image.
Are my files uploaded?
No. Text and images are processed in your browser and never sent to Qcramai.