Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text.

Processed on your device. Files are not uploaded

How to encode or decode Base64

  1. Paste your text

    Paste or type your text into the box.

  2. Choose the direction

    Encode to Base64, or decode from Base64.

  3. Copy the result

    Copy the result, or use it straight away.

When to use Base64 Encoder / Decoder

You need to encode text for a header, a token or a config value, or read a Base64 string you were given.

A debugging session needs a quick check of what a Base64 value contains.

Tips for a better Base64 Encoder / Decoder result

Paste the text, choose encode or decode, and copy the result.

If decoding fails, check for missing padding, stray spaces or a URL-safe variant.

Base64 Encoder / Decoder: limits and what to check

Base64 is an encoding that anyone can reverse, so it does not protect secrets.

For an image, the image to Base64 tool gives a ready data URL.

About Base64 Encoder / Decoder

Convert text to Base64 and back. Base64 is an encoding, not encryption, so it does not hide anything. For images, use Image to Base64.

FAQs

Is Base64 secure?

No. It is an encoding that anyone can reverse. Do not use it to protect secrets.

Can I encode an image?

Use Image to Base64.

Related tools