Base64 Encode/Decode
Base64 Encode/Decode encodes text, files and images to Base64 or decodes Base64 back. It handles UTF-8 characters correctly, produces Base64URL, unpadded (no =) and 76-column wrapped output, detects the Base64 variant automatically and decodes data URIs. Pick a file or image and copy it as a data URI, an <img> tag or CSS url(); decoded binary data (images, PDFs…) can be previewed and downloaded. Processing happens in your browser.
How it works
- 1For text, paste the content into the input; for a file or image switch to the “File / image” tab and choose the file.
- 2Choose a direction: “Encode” goes to Base64, “Decode” goes back; when decoding the variant (Base64, Base64URL, data URI) is detected automatically.
- 3Turn on URL-safe, unpadded or wrapped output if you need it.
- 4Copy the result; if the decoded data is not text, download the file or preview the image.
Frequently asked questions
Is Base64 a form of encryption?−+
No. Base64 is only an encoding; it does not hide data, anyone can decode it. For privacy you need real encryption (e.g. AES).
What is the difference between Base64 and Base64URL?−+
Base64URL uses - and _ instead of + and /, which cause problems in URLs and file names, and usually drops the = padding. JWTs and URL parameters use this form.
Why do non-English characters break in some tools?−+
Many tools assume Latin-1 instead of UTF-8. This tool encodes as UTF-8 first, so accented and non-Latin characters survive.
Why does Base64 make data bigger?−+
Base64 represents 3 bytes with 4 characters, so the output is about 33% larger. That is the cost of text-safe transport.
How do I embed an image in CSS or HTML?−+
In the “File / image” tab choose the image and copy the data URI or the ready-made <img> / CSS url() line. It suits small icons; large images bloat the page.
What about Base32, Base58 and Base85?−+
Use the Encoding Converter tool for those.
Embed on your site
<iframe src="https://toolsqube.com/en/security/base64-converter/embed" width="480" height="360" style="border:0;border-radius:14px" title="Base64 Encode/Decode · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: Encoding and Security Guide →