# Base64 Encoder/Decoder

Encode and decode Base64 strings

> Canonical page: https://elysiatools.com/en/tools/base64-encoder

- **Category:** Format Conversion

- **Keywords:** base64, encode, decode

## Overview

The Base64 Encoder/Decoder is a lightweight utility designed to quickly convert plain text into Base64 format or revert Base64 strings back into readable text.

## Inputs

- **Text Input** (textarea): Enter text to encode/decode...
- **Operation** (select)

## When to use

- When you need to safely transmit binary data or special characters over text-based protocols.
- When you are debugging or inspecting encoded data strings found in web requests or configuration files.
- When you need to embed small assets like images or icons directly into HTML or CSS code.

## How it works

- Paste your text or Base64 string into the input area.
- Select the desired operation: 'Encode' to convert text to Base64, or 'Decode' to convert Base64 back to text.
- The tool instantly processes the input and displays the result in the output field.

## Use cases

- Encoding configuration strings for web applications.
- Decoding data payloads from API responses.
- Preparing text data for inclusion in data URIs.

## Frequently asked questions

### What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format.

### Is my data sent to a server?

No, this tool performs all encoding and decoding operations locally in your browser for your privacy.

### Can I encode images with this tool?

This tool is designed for text-based input. For images, you must first convert the file to a Base64 string before pasting it here.

### Why does my decoded output look like garbled text?

This usually happens if the input string is not a valid Base64 sequence or was encoded using a different character set.

### Are there limits on the input size?

The tool can handle large strings, but performance may vary depending on your browser's memory capacity.

## Related tools

- [Base64 Converter](https://elysiatools.com/en/tools/base64-converter): Encode and decode data to/from Base64 format with URL-safe options
- [Base64URL Encoder/Decoder](https://elysiatools.com/en/tools/base64url-encoder): Encode and decode Base64URL (URL-safe Base64 variant used by JWT/JWS/JWE), with conversions between standard and URL-safe Base64
- [Caesar Cipher](https://elysiatools.com/en/tools/caesar-cipher): Encode, decode, and brute-force the Caesar cipher with any shift (1–25), or print all 25 candidate decodings.
- [Hex to String Converter](https://elysiatools.com/en/tools/hex-to-string): Convert text to and from hexadecimal strings with flexible spacing, prefix (0x/\x/U+), and case options
- [Text to Binary Converter](https://elysiatools.com/en/tools/text-to-binary): Convert text to and from binary bit strings using ASCII (7-bit) or UTF-8 (8-bit) encoding
- [ASCII85 Converter](https://elysiatools.com/en/tools/ascii85-converter): Encode and decode text to/from ASCII85 format (Adobe version)
- [Atbash Cipher](https://elysiatools.com/en/tools/atbash-cipher): Encode and decode text using Atbash substitution cipher (reverses the alphabet)
- [Base32 Converter](https://elysiatools.com/en/tools/base32-converter): Encode and decode text to/from Base32 format with multiple variants

## Samples

- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Hex/Unicode Encoding Format Samples](https://elysiatools.com/en/samples/text-hex-unicode-formats): Examples of hex (\xXX) and unicode (\uXXXX) escape sequence encoding formats
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
