🔢

Base64 Encoder / Decoder

Encode or decode text and files instantly. Everything runs in your browser — nothing is uploaded.

Result appears here
ℹ️ How to use
  1. Choose mode — Encode to Base64 or Decode from Base64
  2. Type or paste your text in the input field
  3. Click Convert to see the result
  4. File mode — drag and drop any file to get its Base64

🔗 Related Tools

-FAQ

What Is Base64 and Why Does It Exist?

Base64 is a way to encode binary data (images, files, any sequence of bytes) into a string of plain text characters. It was invented to solve a specific problem: early email systems and many text-based protocols could only transmit ASCII text, not raw binary data. Base64 converts any binary file into a set of 64 safe characters (A–Z, a–z, 0–9, +, /) that any system can handle without corruption.

Common Uses for Developers

Base64 Is Not Encryption

A common misconception: Base64 is purely encoding, not encryption. It is trivially reversible — anyone can decode a Base64 string in seconds. Never use Base64 to "hide" sensitive data. Encrypt data with AES or similar before encoding if security is required.

Base64URL Variant

Standard Base64 uses + and / which have special meanings in URLs. Base64URL replaces these with - and _ for safe use in URLs and filenames. JWT tokens use Base64URL. Our tool handles both variants.

Size note: Base64 encoding increases file size by approximately 33% — every 3 bytes of binary become 4 Base64 characters. Keep this in mind when deciding whether to embed images or serve them as separate files.

❓ Frequently Asked Questions

What is Base64 encoding?

Base64 is an encoding scheme that converts binary data into a string of ASCII characters using 64 printable characters (A–Z, a–z, 0–9, +, /). It is used to safely transmit binary data over text-based channels like email or URLs.

Why is Base64 used?

Base64 is used to embed images directly in HTML/CSS (data URIs), encode email attachments (MIME), store binary data in JSON, and transmit binary data over APIs that only accept text.

Does Base64 encrypt data?

No. Base64 is encoding, not encryption. Anyone can instantly decode a Base64 string. Never use Base64 to hide sensitive data. Use proper encryption (AES, RSA) for security.

How much does Base64 increase file size?

Base64 increases the size of data by approximately 33%. A 100 KB image becomes about 133 KB when Base64-encoded. This is a trade-off for the convenience of embedding binary data as text.

What is the difference between Base64 and Base64URL?

Standard Base64 uses '+' and '/' characters which have special meaning in URLs. Base64URL replaces '+' with '-' and '/' with '_', making it safe to use in URLs and filenames without encoding.