Base64 Encoder / Decoder
Encode or decode text, files, and images to and from Base64 without leaving your browser.
Complete Guide & FAQ
What is the Base64 Encoder / Decoder?
It converts text and files to and from Base64 instantly. Encode plain text, upload a file to get its data URL, or paste a Base64 string to decode it: if the result is an image, the tool recognizes it and shows it to you instead of an unreadable block of text.
What it does
- Encode / decode text: UTF-8-safe conversion, including accents and emoji.
- Encode files: upload any file and get its Base64 data URL representation.
- Automatic image detection: when decoding, if the content is an image (PNG, JPEG, GIF, WEBP, BMP), a preview is shown instead of binary text.
- One-click zoom: click the preview to open it full-size in a modal.
Frequently Asked Questions (FAQ)
If I decode an image, why do I see the image instead of text?
The tool automatically detects the byte signature of common image formats (PNG, JPEG, GIF, WEBP, BMP) and, instead of showing you unreadable binary content as text, builds a data URL and displays the decoded image directly.
Is there a file size limit for encoding?
There's no fixed limit imposed by the tool; it depends on your browser's available memory. It works fine with typical-sized images and files (up to several MB).
What does the "The value is not valid Base64" error mean?
It appears when the text pasted into the decode field contains characters outside the Base64 alphabet, or when the string is incomplete or corrupted.