Base64 Encoder / Decoder

Convert plain text or images to Base64

Encode text into a Base64 string or decode Base64 back to readable text, and turn uploaded images into Base64 data — all in your browser.

Base64 output
The converted string will appear here.

About the base64 encoder / decoder

Base64 is an encoding scheme that represents binary data — text, images, or any bytes — using only 64 printable ASCII characters. It is commonly used to embed images directly in HTML or CSS, transmit binary data over text-only channels like JSON APIs, and store small assets in data URLs.

This tool encodes plain text into a Base64 string and decodes Base64 back to text, handling UTF-8 correctly so international characters survive the round trip. You can also upload an image file to instantly get its Base64 string for embedding as a data URL.

Options

  • Encode — convert plain text into a Base64 string.
  • Decode — convert a Base64 string back to readable text.
  • Image upload — read an image file and load its Base64 representation.

How to use the base64 encoder / decoder

  1. Pick a mode

    Choose Encode (text → Base64) or Decode (Base64 → text).

  2. Enter or load input

    Type or paste your text, or upload an image to load its Base64 automatically.

  3. Copy the result

    The converted string appears live — click Copy to use it anywhere.

Frequently asked questions

What is Base64 used for?
Base64 encodes binary data as printable ASCII text, so it can travel through systems that only handle text — email, JSON APIs, data URLs, and inline image embedding in HTML or CSS.
Can I convert an image to Base64?
Yes. Use the upload button to pick an image file and the tool reads it as a data URL, loading the Base64 string into the input so you can copy it for inline embedding.
Does it handle Unicode and emoji?
Yes. Encoding and decoding use UTF-8, so international characters and emoji survive the round trip without corruption.
Why did my decode fail?
Decode fails when the input contains characters outside the Base64 alphabet or has an invalid length. Check for stray spaces, line breaks, or non-Base64 symbols.
Is my data uploaded anywhere?
No. All encoding, decoding, and file reading happen entirely in your browser — nothing is sent to a server.

Other utilities