Skip to content

Data tool

Base64 Decode and Encode

Decode Base64 back into readable text or a file, or encode text and files to Base64.

Runs entirely in your browser. Nothing you paste is uploaded.

What do you want to do?

Base64 Encoder / Decoder by YegappanFree tool. Open the full page for the guide.

How to use the Base64 Encoder / Decoder

  1. Choose Encode or Decode.
  2. Type or paste into the left box, or pick a file to encode. The result appears as you type.
  3. Copy the result. When decoded data is a file rather than text, use Download file to save it.

What Base64 is and when to use it

Base64 decode turns a Base64 string back into the original text or file, and Base64 encode does the reverse. This online Base64 converter handles both directions, including Base64 to image, without sending anything to a server.

Base64 represents binary data using 64 printable characters so it can travel through systems that only handle text, such as JSON fields, email, and data: URIs in HTML and CSS. It is an encoding, not encryption: anyone can decode it.

This tool encodes text as UTF-8 first, so emoji and non-English characters survive the round trip. The URL-safe option swaps + and / for - and _, the variant used in JWTs and query strings.

When decoding, whitespace and line breaks are ignored, URL-safe input is accepted, and a leading data:image/png;base64, prefix is recognised so images can be saved straight to a file.

Common questions

How do I decode Base64 online?

Paste the Base64 string and choose Decode. Text appears straight away, and when the data is a file or an image you can download it.

Is Base64 a way to secure data?

No. It only changes how data is written. Anyone can decode it, so never use it to hide passwords or secrets.

Why is the Base64 version larger than the original?

Every 3 bytes become 4 characters, so encoded data is about 33% bigger than the source.

Can I decode an image?

Yes. Paste the Base64 or the full data URI, then use Download file. The tool detects that the result is binary rather than text.

Are my files uploaded?

No. Files are read and encoded inside your browser and never sent anywhere.

Guides for the Base64 Encoder / Decoder

Related tools