Utilavo
Ab64

Base64 Encoder

Encode and decode Base64 strings and files

What is Base64 encoding?

Base64 Encoder converts text or binary data to and from Base64 encoding. Base64 is widely used for embedding binary data in text formats such as HTML, CSS, JSON, and email — for example, encoding images as data URIs or transmitting binary data through APIs that only accept text.

You can encode plain text strings, or upload a file to encode its binary content directly. The reverse (decode) operation converts Base64 back to the original text or file. All processing is done locally in your browser.

How to use Base64 Encoder

  1. Choose encode or decode

    Select the mode: Encode converts text or file data to Base64. Decode converts Base64 back to text or a downloadable file.

  2. Enter your input

    Type or paste text into the input field, or upload a file for binary encoding.

  3. Copy the output

    The result appears instantly. Click Copy to copy it to your clipboard.

Frequently asked questions

What is Base64 used for?

Base64 is used to represent binary data (like images or files) as a string of ASCII characters, so it can be safely embedded in text-based formats like HTML, JSON, XML, or email bodies that cannot handle raw binary.

Can I encode a file to Base64?

Yes. Click the file upload option, select your file, and the tool will encode the entire file contents to Base64. This is useful for creating data URIs or encoding attachments.

What is the URL-safe Base64 variant?

Standard Base64 uses + and / characters that have special meaning in URLs. URL-safe Base64 replaces these with - and _ so the encoded string can be used in URLs and filenames without percent-encoding.

Related tools