Base64 Encode & Decode
Encode text or any file to Base64, or decode Base64 back to text, images and files. Drop a file onto the box to get its data URI, ready to paste into HTML or CSS.
How to use Base64 Encode and Decode on KickSolve
Three quick steps, no account needed.
Why choose KickSolve
Built for speed, privacy and clean results.
What you can do with Base64 Encode and Decode
Everything this tool offers.
About Base64 Encode and Decode on KickSolve
What it does and how to get the best results.
What is Base64?
Base64 writes binary data using only letters, numbers, + and /. It is used to put files and special characters into places that only accept text, such as JSON, HTML, CSS, emails and URLs. It is an encoding, not encryption, so anyone can decode it.
Data URIs
A data URI puts a whole file inside a link, for example data:image/png;base64,... Drop an image onto the box to get one, then paste it into an img tag or a CSS background. It saves a request but makes the HTML larger by about a third, so it suits small images and icons.
URL-safe Base64
Standard Base64 uses + and /, which have special meanings in URLs. URL-safe Base64 uses - and _ instead and often drops the = padding. JWTs use this form. When decoding, both forms are accepted automatically.
Decoding
Paste Base64 or a full data URI. If the result is text it is shown as text. If it is an image, PDF or another file it is detected and you can download it. Spaces and line breaks inside the Base64 are ignored.
Limits
Large files are read into memory, so very big files depend on your device. The result box shows the first 400,000 characters, and Copy and Download give you the full result.
Read our privacy policy for details about the site itself.
Frequently asked questions
Quick answers.
Is this Base64 tool free?
Yes. It is free with no sign-up.
Are my files uploaded anywhere?
No. Everything runs in your browser and nothing is sent to a server.
How do I get a data URI for an image?
Choose Encode, then drop the image onto the box. The result is a data URI you can paste into HTML or CSS. You can also choose an img tag or CSS url() format.
Is Base64 encryption?
No. It only changes how data is written. Anyone can decode it, so never use it to protect secrets.
What is URL-safe Base64?
It replaces + and / with - and _ so the text can be used in URLs and tokens. Padding with = is often left out. Decoding accepts both forms.
Why is my Base64 invalid?
Common causes are extra characters, a missing part when copying, or characters that are not Base64. The tool shows which character is wrong and where.
Does it handle accents and emoji?
Yes. Text is encoded and decoded as UTF-8.
Can I decode an image or PDF?
Yes. Paste the Base64 or data URI and the tool detects images, PDFs and zip files, shows image previews and lets you download the file.
More free tools from KickSolve
Related everyday tools.