Base64 Encoder / Decoder

Encode plain text to Base64 or decode Base64 strings back to readable text instantly.

🔡 Text → Base64 (Encode)

Input: 0 chars Output: 0 chars Ratio: —

📋 Base64 → Text (Decode)

Standard and URL-safe Base64 are detected automatically.

Invalid Base64 string. Please check the input and try again.

Frequently Asked Questions

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It converts every 3 bytes of data into 4 ASCII characters, making the output about 33% larger than the original but safe to transmit over systems that only handle text.
When is Base64 used?
Base64 is commonly used to embed images or files in HTML and CSS (as data URIs), encode email attachments in MIME format, pass binary data in JSON APIs, store binary data in XML, and encode credentials in HTTP Basic Authentication headers. URL-safe Base64 (which replaces + with - and / with _) is used in JWTs and URL parameters.
Is Base64 the same as encryption?
No. Base64 is encoding, not encryption. It is a reversible transformation with no secret key — anyone can decode Base64 data without any password. It is used to make binary data safe to transmit as text, not to protect it. For security, use actual encryption like AES, not Base64.