Base64 Encoder & Decoder

Encode any text to Base64 and decode Base64 strings back to plain text instantly. Supports standard and URL-safe Base64 — free & unlimited.

Enter text to encode or Base64 to decode…

Quick Examples

Click to instantly encode or decode.

Quick Examples

Click to instantly encode or decode.

How to Use?

1

Choose Mode

Select Encode to Base64 to convert plain text to Base64, or Decode from Base64 to convert Base64 back to text.

2

Enter Input

Type or paste your text or Base64 string in the input box. Conversion happens automatically in real-time.

3

Copy Result

Click Copy to copy the result to your clipboard instantly.

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that converts data into a string of 64 characters — uppercase and lowercase letters (A–Z, a–z), digits (0–9), and + and /. It's widely used to encode binary data (like images or files) into a text format safe for transmission over text-based protocols like email or HTTP.

Base64 increases the size of data by approximately 33% but ensures it can pass through any system that handles ASCII text. Common uses include embedding images in HTML/CSS, encoding credentials in HTTP Basic Auth and encoding email attachments.

Standard vs URL-Safe Base64

StandardUses + and /Email, general data
URL-SafeUses - and _URLs, filenames, JWT tokens
MIMELine breaks every 76 charsEmail attachments (RFC 2045)

Frequently Asked Questions

Is Base64 the same as encryption?

No. Base64 is encoding, not encryption. It does not protect data — anyone can decode it. It simply converts data to a safe text format for transmission.

Why does Base64 output end with = or ==?

Base64 works in 3-byte groups. If the input length isn't a multiple of 3, it pads with = signs to complete the group.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ so the output can be safely used in URLs and filenames without URL-encoding. Used in JWT tokens and modern APIs.

What is the MIME line break option?

MIME Base64 (RFC 2045) requires a line break every 76 characters. Enable this option when generating Base64 for email attachments.

Is this tool free?

Yes, 100% free. No signup, no limits.