KickSolve • Free • Private

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.

Drop a file, get a data URIImages shown as a previewHandles UTF-8 and URL-safe Base64
Input
Result

How to use Base64 Encode and Decode on KickSolve

Three quick steps, no account needed.

Choose Encode or DecodeEncode turns text or a file into Base64. Decode turns Base64 back into the original.
Add your inputType or paste text, press Open file, or drop a file onto the box.
Copy or downloadCopy the result, or download it. Decoded images and files can be saved as files.

Why choose KickSolve

Built for speed, privacy and clean results.

Private by designYour text and files are converted on your device and never uploaded.
Files and imagesDrop a file to get its Base64 or data URI, and see decoded images as a preview.
Correct with UnicodeText is encoded as UTF-8, so accents, symbols and non-Latin scripts work.
Useful optionsURL-safe Base64, optional padding and 76-character line breaks.

What you can do with Base64 Encode and Decode

Everything this tool offers.

Encode textTurn any text into Base64, including accents and emoji.
Encode filesDrop any file to get its Base64 as a data URI, plain Base64, an img tag or CSS url().
Decode Base64Get the original text back, or save the file if it is binary.
Image previewDecoded and uploaded images are shown right on the page.
URL-safe Base64Use - and _ instead of + and /, with or without padding.
SwapMove the result into the input and switch mode in one click.

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.