Base64 Encoder and Decoder

Encode text to Base64 or decode Base64 back to its original text using this free online tool. Base64 encoding converts data into a text-based format that is easy to store and transmit.

How to encode and decode Base64

To encode text to Base64, enter or paste your text into the left input field and click Encode to Base64. The encoded result will appear in the right field.

To decode Base64 text, enter or paste a Base64-encoded string into the right input field and click Decode from Base64. The decoded text will appear in the left field.

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that converts binary data into a sequence of printable ASCII characters. It is commonly used to represent data in text-based formats such as email messages, JSON, and HTML.

Base64 uses 64 characters: uppercase letters (A–Z), lowercase letters (a–z), digits (0–9), plus (+), and slash (/). The equals sign (=) may be added as padding.

Base64 encoding increases data size by approximately 33% for large inputs. It is a reversible encoding method, not encryption, and does not provide security or confidentiality.

Base64 encoding example

For example, encoding the text Hello World! produces the following Base64 string:

Original text: Hello World!

Base64-encoded text: SGVsbG8gV29ybGQh

Decoding the Base64 string returns the original text. Because Base64 is reversible, it should not be used to protect passwords or other sensitive information.

Frequently asked questions

Is Base64 encoding the same as encryption?

No. Base64 is an encoding method, not encryption. Anyone can decode Base64 data without a password or secret key.

Why does Base64 encoding increase data size?

Base64 represents every three bytes of data using four ASCII characters. This increases data size by approximately 33% for large inputs, excluding additional formatting overhead.

What does the equals sign (=) mean in Base64?

The equals sign is used as padding when the number of input bytes is not divisible by three. Standard Base64 strings may end with one or two equals signs.

Can Base64 encode images and files?

Yes. Base64 can encode binary data, including images and files. However, this particular tool accepts text input rather than direct file uploads.

What is the difference between Base64 and Base64URL?

Base64URL is a variant designed for URLs and filenames. It replaces + with - and / with _, and often omits padding. This tool uses standard Base64 encoding.

Last updated:

© 2008–2026 XORBIN.COM. All rights reserved.