Base64 Encoder & Decoder

Convert text, files and images to Base64, or decode Base64 back. Everything runs in your browser, so nothing you enter is uploaded.

Output options

What is Base64?

Base64 is a way to write any data, including text, images and files, using only 64 safe characters: A–Z, a–z, 0–9, + and /. Every 3 bytes of input become 4 characters of output, and = is added at the end if the input does not divide evenly by 3. That is why Base64 is about 33% larger than the original.

Example: Hello, World! encodes to SGVsbG8sIFdvcmxkIQ==

Important: Base64 is not encryption. Anyone can decode it, so do not use it to hide passwords or private data.

Common uses

  • Embedding small images in HTML or CSS as data: URIs.
  • Sending binary data in JSON, email (MIME) and APIs.
  • Reading JWT tokens and HTTP Basic authentication headers (URL-safe Base64).
  • Storing files or keys as plain text in configuration.

Frequently asked questions

Is Base64 encryption?

No. It is only an encoding. Anyone can reverse it, so it provides no security.

What is URL-safe Base64?

It replaces + with - and / with _ so the result works in URLs and filenames. It is often used without the = padding, for example in JWT tokens. Tick URL-safe and untick Keep padding for that format. The decoder accepts both styles automatically.

Does it support emoji and non-English text?

Yes. Text is converted with UTF-8, so Sinhala, Tamil, Arabic, Chinese and emoji encode and decode correctly.

Can I decode a Base64 image?

Yes. Paste the Base64 (with or without the data:image/...;base64, prefix) into Decode mode. If it is an image, you will see a preview and a download button.

Is my data uploaded?

No. All conversion happens in your browser. Nothing is sent to a server.

Was this helpful?
Share this tool:WhatsAppFacebookXTelegramLinkedIn

Last updated 6 October 2026 · Built and maintained by the Idea Flow Labs team. Spotted a wrong result? Tell us and we will fix it.