Base64 Encoder / Decoder

Encode and decode Base64 strings instantly. Supports UTF-8 text. Free, fast, and no sign-up required.

How It Works

1

Enter Text

Type or paste your text or Base64 string into the input box.

2

Select Mode

Choose to Encode or Decode, or let Auto-detect handle it for you.

3

Copy Result

Instantly copy the converted string to your clipboard.

Frequently Asked Questions

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation.

Is Base64 encryption?

No, Base64 is not encryption. It is an encoding scheme used to ensure data remains intact during transport. It offers no security and can be easily decoded.

Does this tool support UTF-8?

Yes, this tool correctly handles UTF-8 characters (like emojis and non-Latin scripts) by properly escaping them before encoding.

Why did the output size increase?

Base64 encoding uses 4 characters to represent every 3 bytes of data, which increases the file size by approximately 33%.

Can I use this for images?

Yes, you can convert image files to Base64 strings (Data URIs) for embedding directly in HTML or CSS.

What is URL-safe Base64?

URL-safe Base64 replaces the `+` and `/` characters (which have special meanings in URLs) with `-` and `_`, respectively.

Why is Base64 used in email?

Email systems were originally designed for text. Base64 allows binary attachments (like images) to be sent as text safely.

Is there a size limit for input?

No hard limit, but very large strings (megabytes) might slow down the browser since all processing is client-side.

Can I decode a partial string?

Base64 strings must be a multiple of 4 characters. If incomplete, the decoder will likely return an error or garbage data.

Is it reversible?

Yes, Base64 is a lossless encoding. Decoding the string returns the exact original binary data.