Base64 Translator

Encode text into Base64 or decode Base64 strings back into readable English. A quick and easy text-to-Base64 and Base64-to-text translator.

Translation Options

Base64 Translator: Encode and Decode Text Instantly

What Is Base64?

Base64 is a binary-to-text encoding scheme that represents data using a set of 64 ASCII characters: A–Z, a–z, 0–9, plus (+), and slash (/), with equals (=) used for padding. It was originally designed to safely transmit binary data over text-based systems like email and URLs, but it's widely used across web development, APIs, and data storage.

Encode Text to Base64

Type or paste any plain text and this translator will convert it into a Base64-encoded string. This is useful when you need to embed text in JSON payloads, data URIs, HTTP headers, or anywhere that requires ASCII-safe content. For example, "Hello, World!" becomes "SGVsbG8sIFdvcmxkIQ==".

Decode Base64 to English

Already have a Base64 string? Paste it in and translate it back to readable English text. This is handy for inspecting encoded tokens, debugging API responses, or reading obfuscated content you've encountered online.

How Base64 Encoding Works

The encoding process takes every 3 bytes of input and splits them into 4 groups of 6 bits each. Each 6-bit group maps to one of the 64 characters in the Base64 alphabet. If the input length isn't a multiple of 3, padding characters (=) are appended to the output. This means Base64-encoded text is always roughly 33% larger than the original.

Examples

Input

Hello, World!

Output

SGVsbG8sIFdvcmxkIQ==

Input

Base64 encoding is useful for transmitting data safely.

Output

QmFzZTY0IGVuY29kaW5nIGlzIHVzZWZ1bCBmb3IgdHJhbnNtaXR0aW5nIGRhdGEgc2FmZWx5Lg==

Input

VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=

Output

The quick brown fox jumps over the lazy dog.

Input

user:password123

Output

dXNlcjpwYXNzd29yZDEyMw==

Input

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9

Output

{"alg":"HS256","typ":"JWT"}

Frequently Asked Questions

Is Base64 encoding the same as encryption?

No. Base64 is an encoding scheme, not encryption. It transforms data into a different text representation but provides zero security. Anyone can decode a Base64 string instantly. Never use Base64 to protect sensitive information like passwords or private keys.

Why is the Base64 output longer than my original text?

Base64 encodes every 3 bytes of input into 4 characters of output, which means the encoded result is always approximately 33% larger than the original. The padding character (=) may add 1 or 2 extra characters at the end as well.

What is URL-safe Base64 and when should I use it?

Standard Base64 uses '+' and '/' characters, which have special meanings in URLs and file paths. URL-safe Base64 replaces these with '-' and '_', and often omits the trailing '=' padding. Use it when embedding Base64 data in URLs, query parameters, or filenames.

What does the '=' at the end of a Base64 string mean?

The '=' character is padding. Base64 processes input in chunks of 3 bytes. If the input isn't evenly divisible by 3, one or two '=' characters are appended to make the output length a multiple of 4. A single '=' means the last chunk had 2 bytes; '==' means it had 1 byte.

Can I decode Base64 that contains line breaks?

Yes. Line breaks in Base64 strings are typically ignored during decoding. They're often added for readability or to comply with standards like MIME (76-character lines) or PEM (64-character lines). The decoder will strip whitespace and process the content normally.

Comments