Base64 Encoder / Decoder

Encode text or binary files to Base64, or decode Base64 strings back. Entirely browser-based — nothing sent to any server.

Plain Text
Base64 Output
Base64 output...
Shortcuts:ShiftEEncodeShiftDDecodeEscClear

What is a Base64 Encoder / Decoder?

Base64 is an encoding scheme that converts binary data into a string of 64 printable ASCII characters. It is widely used to embed images in CSS/HTML, encode authentication credentials in HTTP headers, encode file attachments in email (MIME), and store binary data in JSON or XML.

Why use Deepchill's Base64 Encoder / Decoder?

Deepchill's Base64 tool supports both text and binary file encoding, handles UTF-8 correctly, and runs entirely in your browser. It is significantly faster and cleaner than base64decode.org and similar tools, with no ads and no uploading of your data.

Common Use Cases

  • Encoding images for CSS: Convert small images to base64 data URIs to embed them directly in stylesheets without HTTP requests.
  • HTTP Basic Auth: Encode username:password pairs for the Authorization header in Basic authentication.
  • JWT inspection: Decode the header and payload segments of a JWT token (they are base64url encoded) to inspect the claims.
  • Email attachments: MIME email attachments are base64-encoded. Decode them to recover the original file.

Example

Text → Base64 encoding

Input

Hello, World!

Output

SGVsbG8sIFdvcmxkIQ==

Frequently Asked Questions

Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It is commonly used to embed binary content like images, files, and keys in text-based formats like JSON, XML, and HTTP.