🔐
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text — instantly, free, no login.
✓ Free✓ No Login✓ Encode & Decode✓ URL-safe Mode✓ Private
URL-safe Base64
Replaces + with - and / with _ (safe for URLs)
📚 Base64 Quick Facts
Characters usedA-Z, a-z, 0-9, +, /
Padding char= (equals sign)
Size increase~33% larger than input
Used inEmail, APIs, Data URIs
SecurityNone — not encryption
⚡ Common Use Cases
→Embedding images as data URIs
→Email attachments (MIME)
→Basic Auth headers
→Passing data in query strings
→Storing binary in JSON
→JWT token payloads
📖 How to Use the Base64 Encoder
1
Choose Encode or Decode
Select Encode to convert text to Base64, or Decode to convert a Base64 string back to readable text.
2
Paste Your Content
Type or paste your text into the input box. Toggle URL-safe mode if you need the result to be safe for use in URLs.
3
Convert & Copy
Click the button to convert instantly. Copy the result and use it wherever you need. Use Swap & Reverse to flip input and output.
❓ Frequently Asked Questions
What is Base64 encoding?+
Base64 is an encoding scheme that converts binary data into a text format using 64 printable ASCII characters. It is commonly used to transmit data over systems that only support text, such as email attachments and data URLs.
Is Base64 encryption?+
No. Base64 is encoding, not encryption. It is completely reversible and provides no security. Anyone who has the Base64 string can decode it instantly. Never use Base64 to protect sensitive data.
What is Base64 used for?+
Common uses include embedding images in HTML/CSS as data URIs, encoding email attachments (MIME), passing data in URLs, storing binary data in JSON, and API authentication tokens like Basic Auth headers.
What is URL-safe Base64?+
Standard Base64 uses + and / characters which have special meaning in URLs. URL-safe Base64 replaces + with - and / with _ making it safe to include in URLs and query strings without encoding.
What characters does Base64 use?+
Standard Base64 uses A-Z, a-z, 0-9, + and / (64 characters total) plus = as padding. The name Base64 comes from the 64 character alphabet.