Skip to main content

Base64 Encoder/Decoder

Encode and decode Base64 strings with professional formatting options. Supports text and image encoding (up to 2MB). URL-safe encoding, MIME/PEM formats, and more.

No output yet

Enter your text and configure options, then click to encode or decode

About the Base64 Encoder/Decoder

Encode or decode Base64 text and images with URL-safe options and formatting control.

Popular search terms

base64 encoder decoderbase64 encoderbase64 decoderbase64 converter onlineencode decode base64base64 encode online freebase64 decode onlineurl safe base64 encoder

Common use cases

  • API payloads
  • Data URI creation
  • Debugging Base64 strings

Learn more

Deep dive tips and examples for this generator.

Base64 Encoder/Decoder guide →

Related tools

Explore other developer tools while you're here.

Base64 encoder/decoder FAQs

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that converts binary data into ASCII string format using 64 printable characters. It's commonly used for transmitting data over text-based protocols.

Can I encode images to Base64?

Yes! You can encode images up to 2MB in size. Simply switch to Image mode when encoding, upload your image file, and click encode. Base64-encoded images are commonly used for embedding images directly in HTML, CSS, or JSON.

When should I use URL-safe Base64?

URL-safe Base64 replaces + and / with - and _ respectively, making the encoded string safe for use in URLs and filenames without encoding special characters.

What's the difference between MIME and PEM formats?

MIME format breaks Base64 output into 76-character lines, while PEM format uses 64-character lines. Both formats are commonly used for encoding certificates and keys.

Why does Base64 encoding increase data size?

Base64 encoding increases data size by approximately 33% because it represents 6 bits of data using 8 bits (one ASCII character). This trade-off ensures safe transmission over text-based systems.

Is my data secure when using this tool?

All Base64 processing happens server-side and your data is never stored or logged. However, Base64 is encoding, not encryption - it doesn't provide security or confidentiality.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.