Base64 Encoder / Decoder

Encode text or files to Base64, decode Base64 strings, preview images. Everything runs in your browser — nothing sent anywhere.

Encoding:
Input
Base64 Output

What is Base64?

Base64 is an encoding scheme that converts binary data into ASCII text using 64 printable characters (A–Z, a–z, 0–9, +, /). It is used wherever binary data needs to be stored or transferred over systems designed for text.

Common uses: embedding images in HTML/CSS (data:image/png;base64,...), encoding email attachments (MIME), passing binary data in JSON APIs, storing credentials in HTTP Basic Auth headers, and JWT tokens.

URL-safe Base64 replaces + with - and / with _, making the output safe for use in URLs and filenames without percent-encoding.