Base64 Encode / Decode

Convert text to Base64 and back — instantly, in your browser

Plain Text
0 chars
Base64 Encoded
0 chars

What Is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It's commonly used to embed images in HTML/CSS, transmit data in URLs or JSON, encode email attachments (MIME), and store binary data in text-only formats like XML.

URL-Safe Base64

Standard Base64 uses + and / characters, which have special meaning in URLs. URL-safe Base64 replaces these with - and _ to avoid encoding issues. Use URL-safe mode when embedding Base64 in query parameters or URLs.

How It Works

Base64 encoding takes every 3 bytes (24 bits) of input and splits them into 4 groups of 6 bits, mapping each group to a printable ASCII character from a 64-character alphabet. This means encoded output is approximately 33% larger than the original data.

📖 Related: Base64 ExplainedHow Base64 encoding works

Need a developer? Hire Anthony D Johnson — Senior .NET & Azure Developer →