By Najeeb Sayyed · Updated Oct 2026 · 4 min read

Base64 Encode & Decode: Guide With Examples

The dev trick for stuffing images and tokens into text.

Steps

  1. Open the Base64 Encoder.
  2. Paste text to encode — or Base64 to decode.
  3. Click Encode/Decode and copy the result.

Example

Hello

encodes to

SGVsbG8=

Where devs use it

  • Embedding small images in HTML/CSS
  • JWT tokens and API keys
  • Email attachments (MIME)

Related tools

Frequently Asked Questions

What is Base64?

A way to represent binary data (images, files) as plain ASCII text so it can travel safely in URLs, JSON and emails.

How do I encode to Base64?

Paste text in the free Base64 Encoder, click Encode, copy the output. Decoding works the same in reverse.

Is Base64 encryption?

No. It is encoding, not encryption — anyone can decode it. Never use it to hide passwords.

Why is my Base64 so long?

Base64 inflates size by ~33%. That is normal — it trades size for text-safety.

Is my data uploaded?

No. Encoding runs in your browser — your data never leaves your device.