Base64 Encoder / Decoder

Encode text or files to Base64 and decode Base64 strings back to text or files. Supports standard and URL-safe variants. Everything runs in your browser — nothing is uploaded.

0 chars
Standard Base64 — uses + and / with = paddingURL-safe Base64 — replaces + → - and / → _, no padding

How to use Base64 Encoder / Decoder

  1. 1
    Choose encode or decode

    Select the Encode tab to convert text or a file to Base64, or the Decode tab to convert a Base64 string back to its original form.

  2. 2
    Enter your input

    Paste text into the input field, or drag and drop a file onto the upload area to encode it as a Base64 data URI.

  3. 3
    Select the Base64 variant

    Choose between standard Base64 (RFC 4648) or URL-safe Base64 (which replaces + with - and / with _ to avoid URL encoding issues).

  4. 4
    Copy or download the output

    The result appears instantly. Use the Copy button to copy the Base64 string, or download the decoded file if you decoded a data URI.

Frequently Asked Questions

What is Base64 encoding used for?

Base64 is used to safely transmit binary data (like images or files) over text-based protocols such as email, JSON APIs, or data URIs in CSS and HTML.

What is the difference between standard and URL-safe Base64?

Standard Base64 uses + and / characters, which have special meanings in URLs and must be percent-encoded. URL-safe Base64 replaces these with - and _ so the output can be used directly in URLs and filenames without escaping.

Does Base64 compress data?

No. Base64 encoding increases the data size by approximately 33%. It is used for encoding safety, not compression.

Is this tool free and does it require sign-up?

Yes, it is completely free with no sign-up required. All encoding and decoding runs locally in your browser — nothing is sent to a server.

Related Tools