Base64 Encoder/Decoder

Encode or decode Base64 strings

Base64 Encoder/Decoder
Operation
Options
File Input
Files will be encoded as Base64 strings. Max file size: 5MB
Information
Encoding Statistics
Original Length 0 bytes
Encoded Length 0 bytes
Efficiency 0%
How to use this tool
How to use the Base64 Encoder/Decoder Tool

This tool allows you to encode text to Base64 format or decode Base64 strings back to plain text. It also supports file encoding and various Base64 encoding options.

Encoding Text to Base64
  1. Select the Encode to Base64 operation
  2. Enter the text you want to encode in the input field
  3. Click the Encode to Base64 button
  4. The Base64 encoded result will appear in the output field
Decoding Base64 to Text
  1. Select the Decode from Base64 operation
  2. Enter the Base64 string you want to decode in the input field
  3. Click the Decode from Base64 button
  4. The decoded text will appear in the output field
Encoding Files to Base64
  1. Check the Use file input instead of text option
  2. Select a file to encode (maximum size: 5MB)
  3. Click the Encode File to Base64 button
  4. The Base64 encoded file content will appear in the output field
Options
  • URL Safe: Uses the URL-safe variant of Base64 encoding, replacing + with - and / with _
  • Remove padding: Removes the trailing = padding characters
  • Output as file: Enables downloading the result as a file
Examples

Example 1: Encoding text to Base64

Input: Hello, World!
Output: SGVsbG8sIFdvcmxkIQ==

Example 2: Decoding Base64 to text

Input: SGVsbG8sIFdvcmxkIQ==
Output: Hello, World!

Example 3: URL-safe encoding

Input: Hello+World/123
Standard Base64: SGVsbG8rV29ybGQvMTIz
URL-safe Base64: SGVsbG8rV29ybGQtMTIz
What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to encode binary data such as images, audio files, and other binary files for transmission over text-based protocols like email or HTTP.

Base64 uses a set of 64 characters (A-Z, a-z, 0-9, + and /) to represent binary data, with = used as a padding character. The URL-safe variant replaces + with - and / with _ to make the encoded strings safe for use in URLs and filenames.