🔤 Base64 Encoder / Decoder
Encode and decode Base64 instantly. Supports Unicode, emoji, and URL-safe mode.
❓ FAQ
Base64 is an encoding scheme that converts binary data to ASCII text using 64 characters (A-Z, a-z, 0-9, +, /). It's used for email attachments, image data URIs, JWT tokens, and transmitting binary data over text-based protocols.
No. Base64 is encoding, not encryption. Anyone can decode it — it provides no security. For protecting sensitive data, use actual encryption like AES or RSA. Base64 is purely for safe text transport of binary data.
Standard Base64 uses + and / which have special meaning in URLs and can cause issues in query strings. URL-safe Base64 replaces + with - and / with _, making it safe for use in URLs and HTTP headers. JWT tokens use this variant.
Base64 encoding increases file size by approximately 33%. It converts every 3 bytes of binary data to 4 ASCII characters. So a 300KB image becomes about 400KB when Base64 encoded.
Yes. Use the format: <img src="data:image/png;base64,encodedValue">. This embeds the image directly into HTML without a separate HTTP request. Useful for small icons, but avoid for large images as it significantly increases page size.
