aicores.io

Base64 Encoder / Decoder

Free Online Base64 Encoder and Decoder

Encode text to Base64 or decode Base64 strings back to plain text instantly with this free online tool. Base64 encoding converts binary data into a set of 64 printable ASCII characters, making it safe to transmit over text-based protocols like email, JSON, and URLs. This tool also auto-detects whether your input looks like valid Base64 to help you decide which action to take.

How to Use

Paste your text or Base64 string into the input area above. If the input appears to be valid Base64, a badge will appear next to the label. Click "Encode" to convert plain text to Base64, or "Decode" to convert Base64 back to readable text. Use the copy button on the output area to copy the result to your clipboard.

FAQ

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 ASCII characters (A–Z, a–z, 0–9, +, and /), with = used for padding. It is commonly used to embed binary data such as images or files in text-based formats like JSON, XML, HTML, and email (MIME). The encoded output is roughly 33% larger than the original data.

When should I use Base64 encoding?

Base64 encoding is useful whenever you need to transmit or store binary data in a context that only supports text. Common use cases include embedding images in CSS or HTML using data URIs, sending binary attachments in email, encoding authentication credentials in HTTP headers (Basic Auth), and storing binary blobs in JSON or XML payloads.

Related Tools