0 bytes

About Base64 Encode / Decode

Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters. It is widely used in web development for embedding images directly in HTML or CSS, transmitting binary data in JSON payloads, storing credentials in HTTP Basic Auth headers, and encoding email attachments.

URL-safe variant

Standard Base64 uses the characters + and / which are special characters in URLs. URL-safe Base64 substitutes - for + and _ for /, making encoded strings safe to include in query parameters without encoding.

Note on security

Base64 is encoding, not encryption. It provides no security — any encoded string can be trivially decoded. Never use it to protect passwords or sensitive data.

Frequently Asked Questions

What is Base64?
Base64 converts binary data to ASCII text using 64 printable characters. Used for embedding images in HTML/CSS, transmitting binary in JSON, and HTTP Basic Auth headers.
What is URL-safe Base64?
Replaces + with - and / with _ so the encoded string can be safely included in URLs without percent-encoding.
Does Base64 encrypt data?
No. It is encoding, not encryption. Anyone can decode it instantly. Use proper encryption for sensitive data.
Text & Dev tools
Ad