Base64

Encode and decode Base64 strings.

Input

Output

About Base64

Base64 encodes arbitrary binary data (or plain text) into a safe ASCII string, and decodes it back. It is widely used to embed images in CSS, pass binary data through JSON APIs, encode credentials in HTTP Basic Auth headers, and store small blobs in text-only environments. The tool handles both standard Base64 and the URL-safe variant.

Frequently Asked Questions

Is Base64 free?

Yes, completely free. No signup, no account, no usage limits. Use it as much as you need.

Is my data secure?

All processing happens directly in your browser using JavaScript. Your data is never sent to any server, stored, or shared. It stays entirely on your device.

What is the difference between standard Base64 and URL-safe Base64?

Standard Base64 uses + and / characters which have special meaning in URLs. URL-safe Base64 replaces those with - and _ so the string can be used directly in a URL without percent-encoding.

Can I encode binary files like images?

Yes. You can upload a file and the tool will encode it as a Base64 string. Note that Base64 increases data size by about 33%, so it is best for small files.