Base64 Encoder / Decoder

How to Use

1

Choose Encode or Decode mode

2

Paste your text or Base64 string

3

Click 'Convert' and copy the result

𝕏 Share Facebook LinkedIn Reddit
Used 0 times on this device

How to Use Base64 Encoder / Decoder

  1. 1
    Enter text or data to encode
    Paste plain text or data into the input field.
  2. 2
    Click Encode
    Click Encode to convert the input to Base64. The Base64 string appears in the output area.
  3. 3
    Or paste Base64 to decode
    Switch to Decode mode, paste a Base64 string, and click Decode to get the original text.
  4. 4
    Copy the result
    Click Copy to copy the encoded or decoded output to your clipboard.

Features

Use Cases

Embed images in HTML/CSS

Encode small images to Base64 to embed them directly in HTML img tags or CSS background-image properties, eliminating HTTP requests.

Send binary data in JSON APIs

Base64 is used to encode binary file data (images, PDFs, audio) for transmission in JSON API request and response bodies.

Basic data obfuscation

Encode text or configuration values to Base64 to prevent casual reading. Note: Base64 is encoding, not encryption.

Email attachments in MIME format

Email protocols use Base64 encoding to transmit binary attachments over text-based protocols.

Store binary in text-based formats

YAML, XML, and other text formats use Base64 to embed binary data within text-based configuration files.

Frequently Asked Questions

Q: Is Base64 the same as encryption?

No. Base64 is an encoding scheme, not encryption. It is trivially reversible and provides no security. Never use it to protect sensitive data.

Q: What characters does Base64 use?

Standard Base64 uses A–Z, a–z, 0–9, +, and /. URL-safe Base64 replaces + with - and / with _.

Q: Why does Base64 output end with == or =?

The = padding characters are added to make the Base64 string length a multiple of 4.

Q: Is my text sent to a server?

No. Encoding and decoding happens entirely in your browser using JavaScript's btoa() and atob() functions.

Q: How much does Base64 increase file size?

Base64 encoding increases file size by approximately 33%. A 100 KB file becomes about 133 KB when Base64 encoded.

More Free Tools

Sister site: GenFactories – Fun Generators