Base64 Encoder/Decoder - Encode and Decode Base64

Convert text to Base64 and Base64 back to text instantly.

SGVsbG8sIFdvcmxkIQ==
Ready. Enter text and click Process.

What Is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used for transmitting data over media that are designed to deal with text. Base64 encoding is used in email attachments, image embedding in HTML/CSS, and data exchange in APIs.

How to Use the Base64 Encoder/Decoder

  1. Select mode — Choose "Encode to Base64" or "Decode from Base64".
  2. Enter your data — Type or paste the text/Base64 string you want to process.
  3. Click "Process" — The tool encodes or decodes your data instantly.
  4. Copy the result — Use the "Copy Result" button to copy the output.

Common Base64 Use Cases

Use CaseDescription
Email AttachmentsBase64 encodes binary files for email transmission
Data URLsEmbed images directly in HTML/CSS
API AuthenticationEncode credentials for HTTP Basic Auth
JSON DataEncode binary data within JSON structures
URL EncodingSafe transmission of data in URLs

Base64 Encoding Table

ValueCharacterValueCharacter
0-25A-Z26-51a-z
52-610-962+
63/=Padding

Example Conversions

TextBase64
HelloSGVsbG8=
Hello, World!SGVsbG8sIFdvcmxkIQ==
JavaScriptSmF2YVNjcmlwdA==
admin:passwordYWRtaW46cGFzc3dvcmQ=

Frequently Asked Questions

What is Base64 used for?

Base64 is used to encode binary data (like images, files, or any binary data) into a text format that can be safely transmitted over text-based protocols like HTTP, email, or JSON.

Is Base64 encryption?

No, Base64 is encoding, not encryption. It converts data to a different format but does not secure it. Anyone can decode Base64 back to the original data.

Can I encode images with this tool?

This tool works with text data. For images, you would need to convert the image to a data URL first. This tool is perfect for encoding text strings, JSON data, and small files.

Does Base64 increase file size?

Yes, Base64 encoding increases the size by about 33% compared to the original binary data.

Is this Base64 encoder/decoder free?

Yes, our Base64 encoder/decoder is completely free to use. No registration, no subscription, no hidden costs.

Related Tools