Base64 Encode/Decode

Encode text to Base64 and decode Base64 strings back to text. Handle binary data, files, and various encoding formats.

Input

FREE
0 characters

Result

OUTPUT
0 characters

Encoding Options

SETTINGS

File to Base64

FILE
๐Ÿ“
Drag & drop files here
or click to select files (max 5MB)

Encoding Analysis

ANALYSIS
64
Base64 Length
0
โœ“
Validity
100%
๐Ÿ“ˆ
Size Increase
33%
โš ๏ธ
Invalid Chars
0
Character Analysis:
No analysis available

Quick Actions

ACTIONS

Try Examples

EXAMPLES

Batch Processing

BATCH
Input (one per line):
Output:

Frequently Asked Questions

FAQ
What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in ASCII string format. It's commonly used to encode data for transmission over media that only supports text.

When should I use Base64?

โ€ข Embed images in HTML/CSS (data URLs)
โ€ข Send binary data in JSON/XML
โ€ข Store binary data in databases that only accept text
โ€ข Include attachments in emails
โ€ข API requests with binary payloads

What's the difference between standard and URL-safe Base64?

โ€ข Standard: Uses + and / characters, ends with = padding
โ€ข URL-safe: Uses - and _ instead of + and /, often without = padding

How much larger is Base64 compared to original?

Base64 increases size by about 33%. Every 3 bytes become 4 Base64 characters. The exact formula: ceil(n/3) * 4 characters.

Can Base64 be used for encryption?

No! Base64 is encoding, not encryption. It provides no security. Anyone can decode Base64 data. For security, use proper encryption like AES.

What are the valid Base64 characters?

A-Z, a-z, 0-9, +, /, and = for padding. URL-safe variants use - and _ instead of + and /.