Base64 Encode/Decode
Encode text to Base64 and decode Base64 strings back to text. Handle binary data, files, and various encoding formats.
Input
FREEResult
OUTPUTEncoding Options
SETTINGSFile to Base64
FILEEncoding Analysis
ANALYSISQuick Actions
ACTIONSTry Examples
EXAMPLESBatch Processing
BATCHFrequently Asked Questions
FAQWhat 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 /.